Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ def submit_profile(name, discord, city, country, address, looking, onlinecheck,
|
|
73 |
"Address": address,
|
74 |
"Looking for Team": looking,
|
75 |
"Onlinecheck": onlinecheck,
|
76 |
-
"Languages": languages,
|
77 |
"Laptop": laptop,
|
78 |
"Robot": robot,
|
79 |
"Skills": skills,
|
@@ -91,7 +91,7 @@ def submit_profile(name, discord, city, country, address, looking, onlinecheck,
|
|
91 |
"Address": address,
|
92 |
"Looking for Team": looking,
|
93 |
"Onlinecheck": onlinecheck,
|
94 |
-
"Languages": languages,
|
95 |
"Laptop": laptop,
|
96 |
"Robot": robot,
|
97 |
"Skills": skills,
|
@@ -273,15 +273,20 @@ with demo:
|
|
273 |
city_filter.change(fn=filter_by_fields, inputs=[country_filter, city_filter, language_filter], outputs=[table_html])
|
274 |
language_filter.change(fn=filter_by_fields, inputs=[country_filter, city_filter, language_filter], outputs=[table_html])
|
275 |
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
|
|
|
|
|
|
|
|
|
|
285 |
|
286 |
def download_csv(code):
|
287 |
if code != ADMIN_CODE:
|
|
|
73 |
"Address": address,
|
74 |
"Looking for Team": looking,
|
75 |
"Onlinecheck": onlinecheck,
|
76 |
+
"Languages": languages if isinstance(languages, list) else [languages],
|
77 |
"Laptop": laptop,
|
78 |
"Robot": robot,
|
79 |
"Skills": skills,
|
|
|
91 |
"Address": address,
|
92 |
"Looking for Team": looking,
|
93 |
"Onlinecheck": onlinecheck,
|
94 |
+
"Languages": languages if isinstance(languages, list) else [languages],
|
95 |
"Laptop": laptop,
|
96 |
"Robot": robot,
|
97 |
"Skills": skills,
|
|
|
273 |
city_filter.change(fn=filter_by_fields, inputs=[country_filter, city_filter, language_filter], outputs=[table_html])
|
274 |
language_filter.change(fn=filter_by_fields, inputs=[country_filter, city_filter, language_filter], outputs=[table_html])
|
275 |
|
276 |
+
submit_btn.click(
|
277 |
+
fn=submit_profile,
|
278 |
+
inputs=[name, discord, city, country, address, looking, onlinecheck, languages, laptop, robot, skills, describe3, experience, idea],
|
279 |
+
outputs=[status]
|
280 |
+
).then(
|
281 |
+
fn=update_dropdown_choices,
|
282 |
+
inputs=[],
|
283 |
+
outputs=[country_filter, city_filter, language_filter]
|
284 |
+
).then(
|
285 |
+
fn=filter_by_fields,
|
286 |
+
inputs=[country_filter, city_filter, language_filter],
|
287 |
+
outputs=[table_html]
|
288 |
+
)
|
289 |
+
|
290 |
|
291 |
def download_csv(code):
|
292 |
if code != ADMIN_CODE:
|