Skip to content

Commit cdac1ed

Browse files
committed
Add debug logging to Google Sheets script
- Print raw data rows and column names for troubleshooting - Help identify why no workshops are being parsed
1 parent 3a475ee commit cdac1ed

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/fetch_google_sheets.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,15 @@ def main():
184184

185185
print(f"Fetched {len(raw_data)} rows from Google Sheet")
186186

187+
# Debug: Print first few rows
188+
print("First 3 rows of raw data:")
189+
for i, row in enumerate(raw_data[:3]):
190+
print(f"Row {i+1}: {row}")
191+
192+
# Debug: Print column names
193+
if raw_data:
194+
print(f"Available columns: {list(raw_data[0].keys())}")
195+
187196
# Parse and transform data
188197
workshops = parse_workshop_data(raw_data)
189198

0 commit comments

Comments
 (0)