Omnibus commited on
Commit
9480c8d
1 Parent(s): 5e830d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- high_score.append(f"{ea['game_name']}\n{ea['score']}")
 
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