Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -213,7 +213,9 @@ def get_estereotipos_data(username_mapping):
|
|
213 |
if not matched:
|
214 |
result[f"estereotipos_{discord_name}"] = count
|
215 |
else:
|
216 |
-
|
|
|
|
|
217 |
except Exception as e:
|
218 |
print(f"Error loading estereotipos data: {e}")
|
219 |
|
|
|
213 |
if not matched:
|
214 |
result[f"estereotipos_{discord_name}"] = count
|
215 |
else:
|
216 |
+
# Use just the username portion of the email (before the @)
|
217 |
+
username_part = mail.split('@')[0] if '@' in mail else mail
|
218 |
+
result[f"estereotipos_{username_part}"] = count
|
219 |
except Exception as e:
|
220 |
print(f"Error loading estereotipos data: {e}")
|
221 |
|