sanchit-gandhi HF staff commited on
Commit
a36dbdb
1 Parent(s): 6ccb728

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -58,7 +58,7 @@ def verify_demo(repo_id):
58
  if len(split_repo_id) > 2:
59
  repo_id = "/".join(split_repo_id[-2:])
60
 
61
- if user_name in all_results["username"]:
62
  raise gr.Error(f"Username {user_name} has already passed the assessment!")
63
 
64
  try:
 
58
  if len(split_repo_id) > 2:
59
  repo_id = "/".join(split_repo_id[-2:])
60
 
61
+ if (all_results["username"] == user_name).any():
62
  raise gr.Error(f"Username {user_name} has already passed the assessment!")
63
 
64
  try: