jarajpu commited on
Commit
645bbe6
·
1 Parent(s): e0d7127

enhanced admin panel

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -409,7 +409,7 @@ def update_leaderboard_and_outcomes(match_id, winning_team, man_of_the_match):
409
  users[user_name] -= 200 + bid_points # Penalty for wrong team prediction
410
 
411
  save_match_outcomes(outcomes)
412
- users.save_to_disk(USERS_JSON)
413
  # Convert the updated DataFrame back to a Hugging Face Dataset and push updates
414
  updated_dataset = Dataset.from_pandas(users)
415
  updated_dataset.push_to_hub("Jay-Rajput/DIS_IPL_Dataset")
 
409
  users[user_name] -= 200 + bid_points # Penalty for wrong team prediction
410
 
411
  save_match_outcomes(outcomes)
412
+ users.to_json(USERS_JSON)
413
  # Convert the updated DataFrame back to a Hugging Face Dataset and push updates
414
  updated_dataset = Dataset.from_pandas(users)
415
  updated_dataset.push_to_hub("Jay-Rajput/DIS_IPL_Dataset")