Spaces:
Sleeping
Sleeping
jarajpu
commited on
Commit
·
45f0b1b
1
Parent(s):
bf46a02
adding leads
Browse files
app.py
CHANGED
|
@@ -199,9 +199,10 @@ def submit_prediction(
|
|
| 199 |
|
| 200 |
|
| 201 |
def get_user_total_points(user_name):
|
| 202 |
-
users_dataset = load_dataset("Jay-Rajput/DIS_IPL_Leads", split="train")
|
| 203 |
-
users = users_dataset.to_dict()
|
| 204 |
-
|
|
|
|
| 205 |
|
| 206 |
|
| 207 |
def calculate_max_bid_points(user_name):
|
|
|
|
| 199 |
|
| 200 |
|
| 201 |
def get_user_total_points(user_name):
|
| 202 |
+
# users_dataset = load_dataset("Jay-Rajput/DIS_IPL_Leads", split="train")
|
| 203 |
+
# users = users_dataset.to_dict()
|
| 204 |
+
users = load_users(USERS_JSON)
|
| 205 |
+
return users.get(user_name, {}).get('points')
|
| 206 |
|
| 207 |
|
| 208 |
def calculate_max_bid_points(user_name):
|