8000 Merge pull request #1 from bhavandar/bhavandar-milestone-project-2-sql · DORELAS/complete-python-course@d56c1da · GitHub
[go: up one dir, main page]

Skip to content

Commit d56c1da

Browse files
authored
Merge pull request tecladocode#1 from bhavandar/bhavandar-milestone-project-2-sql
Fixing syntax error in Book type declaration.
2 parents 9fef426 + e1fe3e0 commit d56c1da

File tree

1 file changed

+2
-2
lines changed
  • course_contents/7_second_milestone_project/milestone_2_sql/utils

1 file changed

+2
-2
lines changed

course_contents/7_second_milestone_project/milestone_2_sql/utils/database.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from utils.database_connection import DatabaseConnection
44

5-
Book = Tuple(int, str, str, int)
5+
Book = Tuple[int, str, str, int]
66

77

88
def create_book_table() -> None:
@@ -40,4 +40,4 @@ def delete_book(name: str) -> None:
4040
with DatabaseConnection('data.db') as connection:
4141
cursor = connection.cursor()
4242

43-
cursor.execute('DELETE FROM books WHERE name=?', (name,))
43+
cursor.execute('DELETE FROM books WHERE name=?', (name,))

0 commit comments

Comments
 (0)
0