Spaces:
Sleeping
Sleeping
jarajpu
commited on
Commit
·
9686241
1
Parent(s):
9cde32b
Fixing match schedule
Browse files- app.py +1 -1
- 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.
|
| 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":
|
|
|
|
| 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}}
|