Simplify Google GoogleSheetsReader to return all data including headers

This commit is contained in:
Toran Bruce Richards
2024-07-20 22:52:24 +01:00
parent 8f0f727d48
commit e7be6aec5a

View File

@@ -39,6 +39,5 @@ class GoogleSheetsReader(Block):
if not values:
yield "data", {"error": "No data found."}
else:
headers = values[0]
data = [dict(zip(headers, row)) for row in values[1:]]
data = [row for row in values[0:]]
yield "rows", data