Skip to content

Commit

Permalink
Remove genres from ComicSeries
Browse files Browse the repository at this point in the history
  • Loading branch information
mizaki committed Sep 27, 2023
1 parent 5f725f9 commit 82ff378
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions metron_talker/metron.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,18 +353,13 @@ def _format_search_results(self, search_results: SeriesList) -> list[ComicSeries
name=series_name,
publisher=pub,
start_year=record.year_began,
genres=[],
format=None,
)
)

return formatted_results

def _format_series(self, search_result: Series) -> ComicSeries:
genres = []
for genre in search_result.genres:
genres.append(genre.name)

# Option to use sort name?
# Put sort name in aliases for now

Expand All @@ -378,7 +373,6 @@ def _format_series(self, search_result: Series) -> ComicSeries:
aliases=[search_result.sort_name],
count_of_issues=search_result.issue_count,
count_of_volumes=None,
genres=genres,
description=search_result.desc,
id=str(search_result.id),
image_url=img,
Expand Down

0 comments on commit 82ff378

Please sign in to comment.