Spaces:
Sleeping
Sleeping
Commit
·
13c4963
1
Parent(s):
14dbc67
Updating users loading points
Browse files- __pycache__/app.cpython-310.pyc +0 -0
- app.py +1 -1
__pycache__/app.cpython-310.pyc
ADDED
|
Binary file (12.4 kB). View file
|
|
|
app.py
CHANGED
|
@@ -195,7 +195,7 @@ def submit_prediction(
|
|
| 195 |
|
| 196 |
def get_user_total_points(user_name):
|
| 197 |
users = load_data(USERS_JSON)
|
| 198 |
-
return users.get(user_name, 0)
|
| 199 |
|
| 200 |
|
| 201 |
# Define the new function
|
|
|
|
| 195 |
|
| 196 |
def get_user_total_points(user_name):
|
| 197 |
users = load_data(USERS_JSON)
|
| 198 |
+
return users.get(user_name, {}).get("0", 0)
|
| 199 |
|
| 200 |
|
| 201 |
# Define the new function
|