Skip to content

Commit bc255cc

Browse files
committed
discord_username and name fix
1 parent 3dfb1e8 commit bc255cc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

helpers/supabaseClient.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,8 @@ async def updateContributor(self, contributor: Member, table_class=None):
407407
# Prepare data for upsert
408408
update_data = {
409409
"discord_id": contributor["discord_id"],
410-
"discord_username": contributor["name"],
410+
"discord_username": contributor["discord_username"],
411+
"field_name": contributor["name"],
411412
"chapter": chapters[0] if chapters else None,
412413
"gender": gender,
413414
"email": contributor["email"] if contributor["email"] else "",

main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ async def on_submit(self, interaction: discord.Interaction):
6363
"roles": user.roles,
6464
"joined_at": user.joined_at,
6565
"is_active": True,
66+
"discord_username": user.display_name,
6667
"email":""
6768
}
6869
except Exception as e:

0 commit comments

Comments
 (0)