Spaces:
Running
Running
ChenyuRabbitLove
commited on
Commit
•
8832cfc
1
Parent(s):
106b011
chore: formatting
Browse files
app.py
CHANGED
@@ -32,8 +32,12 @@ def get_player_info(player_backend_user_id):
|
|
32 |
available_achievements=Achievement.get_available_achievements(),
|
33 |
)
|
34 |
new_player.add_badge("participation_star")
|
35 |
-
new_player.update_rewards_status(
|
36 |
-
|
|
|
|
|
|
|
|
|
37 |
|
38 |
return new_player.to_dict()
|
39 |
|
|
|
32 |
available_achievements=Achievement.get_available_achievements(),
|
33 |
)
|
34 |
new_player.add_badge("participation_star")
|
35 |
+
new_player.update_rewards_status(
|
36 |
+
"participation_star", target="is_issued", value=True
|
37 |
+
)
|
38 |
+
new_player.update_rewards_status(
|
39 |
+
"participation_star", target="is_completed", value=True
|
40 |
+
)
|
41 |
|
42 |
return new_player.to_dict()
|
43 |
|