Skip to content

Commit

Permalink
fix: Update achievements.py: write obtained timestamp to badge history
Browse files Browse the repository at this point in the history
  • Loading branch information
joschobart authored Sep 5, 2024
1 parent b43adb9 commit a4b8b80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fun_with_flags/achievements.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ def achievements():
session["badges"][_badge] = _my_document["score"]["badges"][
_badge
].split(" ", 1)[0]
# Write changements of the score to db
_couch[g.user_id] = _my_document
else:
session["badges"][_badge] = _my_document["score"]["badges"][_badge].split(
" ", 1
Expand Down

0 comments on commit a4b8b80

Please sign in to comment.