Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
natlibfi-psams committed Sep 26, 2024
1 parent 50fa8d9 commit 7c79573
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/local_analytics_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand All @@ -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)
Expand Down

0 comments on commit 7c79573

Please sign in to comment.