Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -102,13 +102,14 @@ def get_user_contributions():
|
|
102 |
"""Get contributions per user across all datasets"""
|
103 |
user_contributions = defaultdict(lambda: {"username": "", "contributions": 0, "datasets": {}})
|
104 |
user_id_to_username = {}
|
105 |
-
|
106 |
# Process each dataset
|
107 |
for country in countries.keys():
|
108 |
iso = countries[country]["iso"]
|
109 |
emoji = countries[country]["emoji"]
|
110 |
|
111 |
dataset_name = f"{emoji} {country} - {iso} - Responder"
|
|
|
112 |
try:
|
113 |
print(f"Processing dataset: {dataset_name}")
|
114 |
dataset = client.datasets(dataset_name)
|
|
|
102 |
"""Get contributions per user across all datasets"""
|
103 |
user_contributions = defaultdict(lambda: {"username": "", "contributions": 0, "datasets": {}})
|
104 |
user_id_to_username = {}
|
105 |
+
DATASETS = []
|
106 |
# Process each dataset
|
107 |
for country in countries.keys():
|
108 |
iso = countries[country]["iso"]
|
109 |
emoji = countries[country]["emoji"]
|
110 |
|
111 |
dataset_name = f"{emoji} {country} - {iso} - Responder"
|
112 |
+
DATASETS.append(dataset_name)
|
113 |
try:
|
114 |
print(f"Processing dataset: {dataset_name}")
|
115 |
dataset = client.datasets(dataset_name)
|