We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfc837d commit cdac475Copy full SHA for cdac475
1 file changed
shoppinglist/main.py
@@ -19,11 +19,7 @@ def index():
19
result = []
20
if username:
21
statement = f"SELECT * FROM {TABLE_NAME} where username = '{username}'"
22
- # statement = f"SELECT * FROM {TABLE_NAME} where username = ?"
23
-
24
print(statement)
25
- # SELECT * FROM buy where username = 'Leo ' or '1' = '1'
26
- # cursor.execute(statement, (username,))
27
cursor.execute(statement)
28
result = cursor.fetchall()
29
return render_template('index.html', buy=result)
0 commit comments