Skip to content

Commit

Permalink
discord_username and name fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jaanbaaz committed Dec 24, 2024
1 parent 3dfb1e8 commit bc255cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helpers/supabaseClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,8 @@ async def updateContributor(self, contributor: Member, table_class=None):
# Prepare data for upsert
update_data = {
"discord_id": contributor["discord_id"],
"discord_username": contributor["name"],
"discord_username": contributor["discord_username"],
"field_name": contributor["name"],
"chapter": chapters[0] if chapters else None,
"gender": gender,
"email": contributor["email"] if contributor["email"] else "",
Expand Down
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ async def on_submit(self, interaction: discord.Interaction):
"roles": user.roles,
"joined_at": user.joined_at,
"is_active": True,
"discord_username": user.display_name,
"email":""
}
except Exception as e:
Expand Down

0 comments on commit bc255cc

Please sign in to comment.