Spaces:
Running
Running
ChenyuRabbitLove
commited on
Commit
•
033e6c5
1
Parent(s):
024e4ed
refactor: also update the reward status for demonstrating
Browse files
app.py
CHANGED
@@ -32,6 +32,8 @@ def get_player_info(player_backend_user_id):
|
|
32 |
available_achievements=Achievement.get_available_achievements(),
|
33 |
)
|
34 |
new_player.add_badge("participation_star")
|
|
|
|
|
35 |
|
36 |
return new_player.to_dict()
|
37 |
|
|
|
32 |
available_achievements=Achievement.get_available_achievements(),
|
33 |
)
|
34 |
new_player.add_badge("participation_star")
|
35 |
+
new_player.update_rewards_status("participation_star", target="is_issued", value=True)
|
36 |
+
new_player.update_rewards_status("participation_star", target="is_completed", value=True)
|
37 |
|
38 |
return new_player.to_dict()
|
39 |
|