Skip to content

Commit cdac475

Browse files
committed
remove comments from shoppinglist
1 parent bfc837d commit cdac475

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

shoppinglist/main.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ def index():
1919
result = []
2020
if username:
2121
statement = f"SELECT * FROM {TABLE_NAME} where username = '{username}'"
22-
# statement = f"SELECT * FROM {TABLE_NAME} where username = ?"
23-
2422
print(statement)
25-
# SELECT * FROM buy where username = 'Leo ' or '1' = '1'
26-
# cursor.execute(statement, (username,))
2723
cursor.execute(statement)
2824
result = cursor.fetchall()
2925
return render_template('index.html', buy=result)

0 commit comments

Comments
 (0)