Spaces:
Sleeping
Sleeping
Update src/exp3-pilot.py
Browse files- src/exp3-pilot.py +3 -3
src/exp3-pilot.py
CHANGED
|
@@ -74,13 +74,13 @@ def upload_to_google_drive(response_df):
|
|
| 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.")
|
| 82 |
elif current_sheet_headers != expected_headers:
|
| 83 |
-
st.error("Existing sheet headers mismatch. Data will be appended, but columns might be misaligned.")
|
| 84 |
|
| 85 |
|
| 86 |
# Prepare data: Replace NaN, inf with empty string, then convert to list of lists
|
|
|
|
| 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.")
|
| 82 |
elif current_sheet_headers != expected_headers:
|
| 83 |
+
# st.error("Existing sheet headers mismatch. Data will be appended, but columns might be misaligned.")
|
| 84 |
|
| 85 |
|
| 86 |
# Prepare data: Replace NaN, inf with empty string, then convert to list of lists
|