Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -250,7 +250,7 @@ def get_high_score():
|
|
| 250 |
print (ea['game_name'])
|
| 251 |
print (ea['score'])
|
| 252 |
if ea['score'] != "":
|
| 253 |
-
if ea['score'] >= sort_score[0]:
|
| 254 |
sort_score[2]=sort_score[1]
|
| 255 |
high_score[2]=high_score[1]
|
| 256 |
sort_score[1]=sort_score[0]
|
|
@@ -260,7 +260,7 @@ def get_high_score():
|
|
| 260 |
print(sort_score)
|
| 261 |
print(high_score)
|
| 262 |
pass
|
| 263 |
-
elif ea['score'] >= sort_score[1]:
|
| 264 |
sort_score[2]=sort_score[1]
|
| 265 |
high_score[2]=high_score[1]
|
| 266 |
sort_score[1]=ea['score']
|
|
@@ -268,7 +268,7 @@ def get_high_score():
|
|
| 268 |
print(sort_score)
|
| 269 |
print(high_score)
|
| 270 |
pass
|
| 271 |
-
elif ea['score'] >= sort_score[2]:
|
| 272 |
sort_score[2]=ea['score']
|
| 273 |
high_score[2]=(f"{ea['score']}<br>{ea['game_name']}<br><br>")
|
| 274 |
print(sort_score)
|
|
|
|
| 250 |
print (ea['game_name'])
|
| 251 |
print (ea['score'])
|
| 252 |
if ea['score'] != "":
|
| 253 |
+
if int(ea['score']) >= int(sort_score[0]):
|
| 254 |
sort_score[2]=sort_score[1]
|
| 255 |
high_score[2]=high_score[1]
|
| 256 |
sort_score[1]=sort_score[0]
|
|
|
|
| 260 |
print(sort_score)
|
| 261 |
print(high_score)
|
| 262 |
pass
|
| 263 |
+
elif int(ea['score']) >= int(sort_score[1]):
|
| 264 |
sort_score[2]=sort_score[1]
|
| 265 |
high_score[2]=high_score[1]
|
| 266 |
sort_score[1]=ea['score']
|
|
|
|
| 268 |
print(sort_score)
|
| 269 |
print(high_score)
|
| 270 |
pass
|
| 271 |
+
elif int(ea['score']) >= int(sort_score[2]):
|
| 272 |
sort_score[2]=ea['score']
|
| 273 |
high_score[2]=(f"{ea['score']}<br>{ea['game_name']}<br><br>")
|
| 274 |
print(sort_score)
|