WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 3dfb1e8

Browse files
committed
email check added
1 parent 163e7d7 commit 3dfb1e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

helpers/supabaseClient.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ async def updateContributor(self, contributor: Member, table_class=None):
410410
"discord_username": contributor["name"],
411411
"chapter": chapters[0] if chapters else None,
412412
"gender": gender,
413-
"email": contributor["email"],
413+
"email": contributor["email"] if contributor["email"] else "",
414414
"is_active": contributor["is_active"],
415415
"joined_at": contributor["joined_at"].replace(tzinfo=None), # Ensure naive datetime
416416
}
@@ -420,6 +420,8 @@ async def updateContributor(self, contributor: Member, table_class=None):
420420
result = await session.execute(stmt)
421421
existing_record = result.scalars().first()
422422

423+
print('existing record ', existing_record)
424+
423425
if existing_record:
424426
# Update existing record
425427
stmt = (

0 commit comments

Comments
 (0)