jarajpu commited on
Commit
9686241
·
1 Parent(s): 9cde32b

Fixing match schedule

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. users.json +1 -1
app.py CHANGED
@@ -415,7 +415,7 @@ def update_leaderboard_and_outcomes(match_id, winning_team, man_of_the_match):
415
  # outcomes.add_item({"match_id": match_id, "winning_team": winning_team, "man_of_the_match": man_of_the_match})
416
  new_outcome = {"match_id": match_id, "winning_team": winning_team, "man_of_the_match": man_of_the_match}
417
  # Append the new outcome to the DataFrame
418
- outcomes_df = outcomes_df.append(new_outcome, ignore_index=True)
419
  outcomes = Dataset.from_pandas(outcomes_df)
420
 
421
  # Update user points based on prediction accuracy
 
415
  # outcomes.add_item({"match_id": match_id, "winning_team": winning_team, "man_of_the_match": man_of_the_match})
416
  new_outcome = {"match_id": match_id, "winning_team": winning_team, "man_of_the_match": man_of_the_match}
417
  # Append the new outcome to the DataFrame
418
+ outcomes_df = pd.concat([outcomes_df, pd.DataFrame([new_outcome])], ignore_index=True)
419
  outcomes = Dataset.from_pandas(outcomes_df)
420
 
421
  # Update user points based on prediction accuracy
users.json CHANGED
@@ -1 +1 @@
1
- {"Arpit":{"0":28015},"Ganesh":{"0":10251},"Haaris":{"0":25300},"Jay":{"0":11500},"Kishore":{"0":12520},"Megha":{"0":18650},"Naveein":{"0":14700},"Neha":{"0":7500},"Praveen":{"0":20800},"Rakesh":{"0":4820},"Sai":{"0":23884},"Sahil":{"0":21880},"Sunil":{"0":4513},"Vaibhav":{"0":6318},"Vinay":{"0":17720}}
 
1
+ {"Arpit":{"0":22513},"Ganesh":{"0":10251},"Haaris":{"0":26200},"Jay":{"0":11500},"Kishore":{"0":13220},"Megha":{"0":19850},"Naveein":{"0":13200},"Neha":{"0":7500},"Praveen":{"0":23024},"Rakesh":{"0":4820},"Sai":{"0":22384},"Sahil":{"0":19880},"Sunil":{"0":5891},"Vaibhav":{"0":6318},"Vinay":{"0":17720}}