Skip to content

Commit 1ca714e

Browse files
committed
correct logic for finding email
1 parent 1b92155 commit 1ca714e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

integrate/data_manager.py

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ def find_user(user_id=None, user_email=None):
2929
return row
3030
else:
3131
unknown_id = int(user_id)
32+
if user_email == row.get("email"):
33+
return row
3234

3335
if unknown_email and found_id is not None:
3436
return f"USER EMAIL: {unknown_email} NOT FOUND BUT USER ID: {found_id}"

0 commit comments

Comments
 (0)