Spaces:
Runtime error
Runtime error
Think i have to use csv files for exports
Browse files
main.py
CHANGED
@@ -318,8 +318,8 @@ def get_all_responses(schedule_name:str, password:str):
|
|
318 |
df[col] = [elem.replace(DELIMITER, f"{DELIMITER} ") for elem in df[col].to_list()]
|
319 |
|
320 |
directory = os.path.abspath(os.getcwd())
|
321 |
-
path = directory + "/all responses.
|
322 |
-
df.
|
323 |
|
324 |
if len(df) == 0:
|
325 |
gr.Warning('', ALERT_TIME, title='No one has filled out the form yet.')
|
|
|
318 |
df[col] = [elem.replace(DELIMITER, f"{DELIMITER} ") for elem in df[col].to_list()]
|
319 |
|
320 |
directory = os.path.abspath(os.getcwd())
|
321 |
+
path = directory + "/all responses.csv"
|
322 |
+
df.to_csv(path, index=False)
|
323 |
|
324 |
if len(df) == 0:
|
325 |
gr.Warning('', ALERT_TIME, title='No one has filled out the form yet.')
|