Jay-Rajput commited on
Commit
215743a
·
1 Parent(s): 9a14b44

Updated points calc

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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'] * 2
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: