mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
Simplify Google GoogleSheetsReader to return all data including headers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user