Spaces:
Sleeping
Sleeping
Commit
·
215743a
1
Parent(s):
9a14b44
Updated points calc
Browse files
app.py
CHANGED
|
@@ -343,7 +343,7 @@ def update_leaderboard_and_outcomes(match_id, winning_team, man_of_the_match):
|
|
| 343 |
# Update points based on prediction accuracy
|
| 344 |
if prediction['predicted_winner'] == winning_team:
|
| 345 |
users[user_name] += 1000
|
| 346 |
-
users[user_name] += prediction['bid_points']
|
| 347 |
if prediction['predicted_motm'] == man_of_the_match:
|
| 348 |
users[user_name] += 400 # Bonus for both correct predictions
|
| 349 |
else:
|
|
|
|
| 343 |
# Update points based on prediction accuracy
|
| 344 |
if prediction['predicted_winner'] == winning_team:
|
| 345 |
users[user_name] += 1000
|
| 346 |
+
users[user_name] += prediction['bid_points']
|
| 347 |
if prediction['predicted_motm'] == man_of_the_match:
|
| 348 |
users[user_name] += 400 # Bonus for both correct predictions
|
| 349 |
else:
|