File tree Expand file tree Collapse file tree 6 files changed +4
-3
lines changed Expand file tree Collapse file tree 6 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
# misc
2
- .DS_Store
2
+ .DS_Store
3
+ * .pyc
File renamed without changes.
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def fetch_blog(id: str):
43
43
with SQLite ('application.db' ) as cur :
44
44
45
45
# execute the query and fetch the data
46
- cur .execute (f"SELECT * FROM blogs where id=' { id } '" )
46
+ cur .execute (f"SELECT * FROM blogs where id=?" , [ id ] )
47
47
result = cur .fetchone ()
48
48
49
49
# return the result or raise an error
File renamed without changes.
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def fetch_blog(id: str):
43
43
cur = con .cursor ()
44
44
45
45
# execute the query and fetch the data
46
- cur .execute (f"SELECT * FROM blogs where id=' { id } '" )
46
+ cur .execute (f"SELECT * FROM blogs where id=?" , [ id ] )
47
47
result = cur .fetchone ()
48
48
49
49
# return the result or raise an error
File renamed without changes.
You can’t perform that action at this time.
0 commit comments