Skip to content

Commit

Permalink
missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
Marty Bode committed Jan 29, 2024
1 parent 8e799b8 commit 7ba0906
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions middleware/user_queries.py
Expand Up @@ -2,9 +2,7 @@


def user_get_results(cursor, email):
cursor.execute(
f"select id, password_digest from users where email = '{email}'"
)
cursor.execute(f"select id, password_digest from users where email = '{email}'")
results = cursor.fetchall()
if len(results) > 0:
user_data = {"id": results[0][0], "password_digest": results[0][1]}
Expand All @@ -19,4 +17,4 @@ def user_post_results(cursor, email, password):
f"insert into users (email, password_digest) values ('{email}', '{password_digest}')"
)

return
return

0 comments on commit 7ba0906

Please sign in to comment.