ycho223 commited on
Commit
d75ef7c
·
verified ·
1 Parent(s): 4f49dc0

Update src/exp3-pilot.py

Browse files
Files changed (1) hide show
  1. src/exp3-pilot.py +1 -2
src/exp3-pilot.py CHANGED
@@ -73,9 +73,8 @@ def upload_to_google_drive(response_df):
73
 
74
  # Add headers if the sheet is empty or headers don't match
75
  if not current_sheet_headers or current_sheet_headers != expected_headers:
76
- if sheet.row_count > 0:
77
  # st.warning("Google Sheet headers do not match. Data will be appended, but consider manual alignment or creating a new sheet/worksheet.")
78
-
79
  if not current_sheet_headers: # Only add if sheet is truly empty after potential clear
80
  sheet.append_row(expected_headers)
81
  # st.info("Added headers to the Google Sheet.")
 
73
 
74
  # Add headers if the sheet is empty or headers don't match
75
  if not current_sheet_headers or current_sheet_headers != expected_headers:
76
+ # if sheet.row_count > 0:
77
  # st.warning("Google Sheet headers do not match. Data will be appended, but consider manual alignment or creating a new sheet/worksheet.")
 
78
  if not current_sheet_headers: # Only add if sheet is truly empty after potential clear
79
  sheet.append_row(expected_headers)
80
  # st.info("Added headers to the Google Sheet.")