Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dharmamitra@dharma.mitra committed Jan 2, 2025
1 parent 68dbb07 commit 7d98ddd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,10 @@ def get_category_dict(segment_parallels, categories_list):
category_dict = {}
for parallel in segment_parallels:
if not parallel or not isinstance(parallel, dict):
continue
continue
category = parallel.get("category")
if not category:
continue
continue
try:
category_index = categories_list.index(category) + 1
except ValueError:
Expand All @@ -378,7 +378,7 @@ def get_category_dict(segment_parallels, categories_list):

par_segnr = parallel.get("par_segnr")
if not par_segnr:
continue
continue
category_dict[category_index].append(
shorten_segment_names(par_segnr)
)
Expand Down

0 comments on commit 7d98ddd

Please sign in to comment.