Spaces:
Sleeping
Sleeping
jarajpu
commited on
Commit
·
5b63c9b
1
Parent(s):
bb28c79
Enahncement to users points
Browse files
app.py
CHANGED
|
@@ -218,8 +218,9 @@ def submit_prediction(
|
|
| 218 |
|
| 219 |
|
| 220 |
def get_user_total_points(user_name):
|
| 221 |
-
|
| 222 |
-
|
|
|
|
| 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):
|