Spaces:
Sleeping
Sleeping
Commit ·
e4aa4a9
1
Parent(s): f135def
refactor: add api call return value to check if the api call success
Browse files- utils/utils.py +1 -1
utils/utils.py
CHANGED
|
@@ -192,7 +192,7 @@ def save_latest_player_data():
|
|
| 192 |
with open("latest_player_data.json", "w") as fp:
|
| 193 |
print("Saving latest player data...")
|
| 194 |
json.dump(latest_player_data_as_dict, fp, default=date_serializer)
|
| 195 |
-
|
| 196 |
|
| 197 |
|
| 198 |
def render_player_data(player_info: gr.State):
|
|
|
|
| 192 |
with open("latest_player_data.json", "w") as fp:
|
| 193 |
print("Saving latest player data...")
|
| 194 |
json.dump(latest_player_data_as_dict, fp, default=date_serializer)
|
| 195 |
+
return "finished"
|
| 196 |
|
| 197 |
|
| 198 |
def render_player_data(player_info: gr.State):
|