Spaces:
Running
Running
Commit
·
f135def
1
Parent(s):
033e6c5
refactor: add api call return value to check if the api call success
Browse files- utils/utils.py +1 -0
utils/utils.py
CHANGED
@@ -192,6 +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 |
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):
|