Spaces:
Sleeping
Sleeping
Commit
·
a8ab431
1
Parent(s):
d79709f
points redistribution
Browse files
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 |
-
|
| 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 {}
|