Skip to content

Commit

Permalink
make leaderboard return current score info
Browse files Browse the repository at this point in the history
  • Loading branch information
GDcheeriosYT committed Jul 25, 2024
1 parent 4d27a3c commit c7c7928
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,11 @@ async def gq_submit_leaderboard(leaderboard, user, score):
DB.do("INSERT INTO leaderboard_scores (name, score, leaderboard, \"user\") values (%s, %s, %s, %s);",
params=(user.username, int(score), int(leaderboard), user.id))

return {
"username": user.username,
"score": score
}


# </editor-fold>

Expand Down

0 comments on commit c7c7928

Please sign in to comment.