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

points redistribution

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -31,9 +31,10 @@ outcomes_file = Path("outcomes") / f"match_outcomes.json"
31
  OUTCOMES_FOLDER = outcomes_file.parent
32
  OUTCOMES_FOLDER.mkdir(parents=True, exist_ok=True)
33
 
34
- REDISTRIBUTED_JSON = Path("bonus") / f"redistributed_matches.json"
35
- if not REDISTRIBUTED_JSON.exists():
36
- REDISTRIBUTED_JSON.write_text("[]")
 
37
 
38
  # Initialize CommitScheduler
39
  scheduler = CommitScheduler(
 
31
  OUTCOMES_FOLDER = outcomes_file.parent
32
  OUTCOMES_FOLDER.mkdir(parents=True, exist_ok=True)
33
 
34
+ redistribution_file = Path("bonus") / f"redistributed_matches.json"
35
+ REDISTRIBUTED_FOLDER = redistribution_file.parent
36
+ REDISTRIBUTED_FOLDER.mkdir(parents=True, exist_ok=True)
37
+
38
 
39
  # Initialize CommitScheduler
40
  scheduler = CommitScheduler(