aboutsummaryrefslogtreecommitdiffstats
path: root/hommaexceli_py/sheets_client.py
diff options
context:
space:
mode:
authorJan Tuomi <jan.tuomi@valuemotive.com>2021-02-14 17:25:38 +0200
committerJan Tuomi <jan.tuomi@valuemotive.com>2021-02-14 17:25:38 +0200
commitb26e3a76db789dd52dbbf696b1983cb990765e48 (patch)
tree21d1910469e1b7b984e0ba38af27e73dbcc68375 /hommaexceli_py/sheets_client.py
parent973c8dfdfd90b82e0144af8d979e49e3018ddd0d (diff)
Make stuff pythonic
Diffstat (limited to 'hommaexceli_py/sheets_client.py')
-rw-r--r--hommaexceli_py/sheets_client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/hommaexceli_py/sheets_client.py b/hommaexceli_py/sheets_client.py
index 95721b3..242dca8 100644
--- a/hommaexceli_py/sheets_client.py
+++ b/hommaexceli_py/sheets_client.py
@@ -86,7 +86,7 @@ def fetch_sheet_data(service: Resource) -> list[SheetsRow]:
rows = result.get("values", [])
logging.info(f"Fetched {len(rows)} rows of data")
- return list(map(_row_to_dataclass, rows))
+ return [_row_to_dataclass(row) for row in rows]
def update_sheet_last_done_column(