From 7c795736a602aa87f9f601a8246b86352462e736 Mon Sep 17 00:00:00 2001 From: Pekko Sams Date: Thu, 26 Sep 2024 07:41:46 +0300 Subject: [PATCH] fix linter --- api/local_analytics_exporter.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/local_analytics_exporter.py b/api/local_analytics_exporter.py index 6a809ae07..406af75de 100644 --- a/api/local_analytics_exporter.py +++ b/api/local_analytics_exporter.py @@ -75,7 +75,9 @@ def export_excel(self, _db, start, end, locations=None, library=None): rows = [dict(row) for row in results] # Count how many contributor rows we need - max_contribs = max([0, *[len(row.get("contributors", []) or []) for row in rows]]) + max_contribs = max( + [0, *[len(row.get("contributors", []) or []) for row in rows]] + ) header = [ "Tekijä (aakkostus)", @@ -99,7 +101,7 @@ def export_excel(self, _db, start, end, locations=None, library=None): genres = row.get("genres") categories = ", ".join(genres) if genres else "" - contributors = row.get("contributors") or [] + contributors = row.get("contributors") or [] sheet.append( [ # Tekijä (aakkostus)