Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 25, 2024
1 parent aadd92d commit d4ac942
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions gcd_talker/gcd.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Grand Comics Database™ (https://www.comics.org) information source
"""

# Copyright comictagger team
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -96,7 +97,9 @@ class GCDTalker(ComicTalker):
id: str = "gcd"
website: str = "https://www.comics.org/"
logo_url: str = "https://files1.comics.org/static/img/gcd_logo.aaf0e64616e2.png"
attribution: str = f"Data from <a href='{website}'>{name}</a> (<a href='http://creativecommons.org/licenses/by/3.0/'>CCA license</a>)"
attribution: str = (
f"Data from <a href='{website}'>{name}</a> (<a href='http://creativecommons.org/licenses/by/3.0/'>CCA license</a>)"
)
about: str = (
f"<a href='{website}'>{name}™</a> is an ongoing international project to build a detailed "
f"comic-book database that will be easy to use and understand, and also easy for contributors to "
Expand Down Expand Up @@ -674,12 +677,16 @@ def _format_gcd_issue(self, row: sqlite3.Row, complete: bool = False) -> GCDIssu
number=row_dict["number"],
issue_title=row_dict["issue_title"],
series_id=row_dict["series_id"],
story_titles=row_dict["story_titles"].split("\n")
if "story_titles" in row_dict and row_dict["story_titles"] is not None
else [],
synopses=row_dict["synopses"].split("\n\n")
if "synopses" in row_dict and row_dict["synopses"] is not None
else [],
story_titles=(
row_dict["story_titles"].split("\n")
if "story_titles" in row_dict and row_dict["story_titles"] is not None
else []
),
synopses=(
row_dict["synopses"].split("\n\n")
if "synopses" in row_dict and row_dict["synopses"] is not None
else []
),
image="",
alt_image_urls=[],
covers_downloaded=False,
Expand Down

0 comments on commit d4ac942

Please sign in to comment.