ouhenio commited on
Commit
8351d09
·
verified ·
1 Parent(s): 5fb1bc9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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
- result[f"estereotipos_{mail}"] = count
 
 
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