Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -241,14 +241,15 @@ def get_high_score():
|
|
| 241 |
r = requests.get(f'{save_data}game_data.json')
|
| 242 |
lod = json.loads(r.text)
|
| 243 |
high_score=[]
|
| 244 |
-
high_score.append
|
| 245 |
#lod.sort()
|
| 246 |
for ea in lod:
|
| 247 |
try:
|
| 248 |
print (ea)
|
| 249 |
print (ea['game_name'])
|
| 250 |
print (ea['score'])
|
| 251 |
-
|
|
|
|
| 252 |
#high_score.sort()
|
| 253 |
except Exception:
|
| 254 |
pass
|
|
|
|
| 241 |
r = requests.get(f'{save_data}game_data.json')
|
| 242 |
lod = json.loads(r.text)
|
| 243 |
high_score=[]
|
| 244 |
+
high_score.append("<h3><u>High Score</u></h3><br>")
|
| 245 |
#lod.sort()
|
| 246 |
for ea in lod:
|
| 247 |
try:
|
| 248 |
print (ea)
|
| 249 |
print (ea['game_name'])
|
| 250 |
print (ea['score'])
|
| 251 |
+
if ea['score'] != "":
|
| 252 |
+
high_score.append(f"{ea['score']}<br>{ea['game_name']}<br><br>")
|
| 253 |
#high_score.sort()
|
| 254 |
except Exception:
|
| 255 |
pass
|