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)