Juggling commited on
Commit
dd0aa34
·
verified ·
1 Parent(s): 4c697ff

Think i have to use csv files for exports

Browse files
Files changed (1) hide show
  1. main.py +2 -2
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.xlsx"
322
- df.to_excel(path, index=False)
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.')