jarajpu commited on
Commit
5b63c9b
·
1 Parent(s): bb28c79

Enahncement to users points

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -218,8 +218,9 @@ def submit_prediction(
218
 
219
 
220
  def get_user_total_points(user_name):
221
- users = load_data(USERS_JSON)
222
- return users.get(user_name, {}).get("0", 0)
 
223
 
224
 
225
  def calculate_max_bid_points(user_name):
 
218
 
219
 
220
  def get_user_total_points(user_name):
221
+ users_dataset = load_dataset("Jay-Rajput/DIS_IPL_Leads", split="train")
222
+ users = users_dataset.to_dict()
223
+ return users.get(user_name, {})[0].get("0", 0)
224
 
225
 
226
  def calculate_max_bid_points(user_name):