Spaces:
Sleeping
Sleeping
Commit
·
f61e8b1
1
Parent(s):
5b63c9b
Updating scoring system
Browse files
app.py
CHANGED
|
@@ -458,9 +458,9 @@ def update_leaderboard_and_outcomes(match_id, winning_team, man_of_the_match):
|
|
| 458 |
# Update points based on prediction accuracy
|
| 459 |
points = users_df[user_name][0]['0']
|
| 460 |
if predicted_winner == winning_team:
|
| 461 |
-
points +=
|
| 462 |
if predicted_motm == man_of_the_match:
|
| 463 |
-
points +=
|
| 464 |
else:
|
| 465 |
points -= 200 + bid_points
|
| 466 |
|
|
|
|
| 458 |
# Update points based on prediction accuracy
|
| 459 |
points = users_df[user_name][0]['0']
|
| 460 |
if predicted_winner == winning_team:
|
| 461 |
+
points += 2000 + bid_points
|
| 462 |
if predicted_motm == man_of_the_match:
|
| 463 |
+
points += 500
|
| 464 |
else:
|
| 465 |
points -= 200 + bid_points
|
| 466 |
|