Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
a8b78c8
1
Parent(s):
4788cde
robustness to _ in names
Browse files
app.py
CHANGED
@@ -110,7 +110,8 @@ def add_solution_cbk(
|
|
110 |
# TODO: extract stable_id robustly, if possible.
|
111 |
if not profile.username:
|
112 |
return styled_error("Could not retrieve username. Please try signing in again.")
|
113 |
-
|
|
|
114 |
|
115 |
try:
|
116 |
# Validating the submission file.
|
|
|
110 |
# TODO: extract stable_id robustly, if possible.
|
111 |
if not profile.username:
|
112 |
return styled_error("Could not retrieve username. Please try signing in again.")
|
113 |
+
# We rely on underscores as separators in submission ID, replace it with "-".
|
114 |
+
user_id = profile.username.replace("_", "-")
|
115 |
|
116 |
try:
|
117 |
# Validating the submission file.
|