Jay-Rajput commited on
Commit
a8ab431
·
1 Parent(s): d79709f

points redistribution

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -293,10 +293,7 @@ def display_predictions():
293
 
294
  def redistribute_lost_points(match_id) -> dict:
295
  # Load already processed matches
296
- if not os.path.exists(REDISTRIBUTED_JSON) or os.stat(REDISTRIBUTED_JSON).st_size == 0:
297
- with open(REDISTRIBUTED_JSON, "w") as f:
298
- json.dump([], f)
299
- done_matches = load_data(REDISTRIBUTED_JSON)
300
 
301
  if match_id in done_matches:
302
  return {}
 
293
 
294
  def redistribute_lost_points(match_id) -> dict:
295
  # Load already processed matches
296
+ done_matches = load_data(redistribution_file)
 
 
 
297
 
298
  if match_id in done_matches:
299
  return {}