Skip to content

Commit

Permalink
Revert line to original version
Browse files Browse the repository at this point in the history
  • Loading branch information
maxachis committed Mar 16, 2024
1 parent c4a0fa7 commit c62e650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/user_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def user_check_email(cursor, email):
Returns:
- A dictionary with user ID if the user exists, or an error message if no match is found.
"""
cursor.execute(f"SELECT id FROM users WHERE email = '{email}'")
cursor.execute(f"select id from users where email = '{email}'")
results = cursor.fetchall()
if len(results) > 0:
user_data = {"id": results[0][0]}
Expand Down

0 comments on commit c62e650

Please sign in to comment.