Merge branch 'mizaki-cache_role_fix' into develop

This commit is contained in:
Timmy Welch 2023-02-17 10:21:54 -08:00
commit c437532622
No known key found for this signature in database

View File

@ -378,7 +378,12 @@ class ComicCacher:
)
# now process the results
credits = []
try:
for credit in json.loads(row[13]):
credits.append(Credit(**credit))
except Exception:
logger.exception("credits failed")
record = ComicIssue(
id=row[1],
name=row[2],
@ -392,7 +397,7 @@ class ComicCacher:
alt_image_urls=row[10].strip().splitlines(),
characters=row[11].strip().splitlines(),
locations=row[12].strip().splitlines(),
credits=json.loads(row[13]),
credits=credits,
teams=row[14].strip().splitlines(),
story_arcs=row[15].strip().splitlines(),
complete=bool(row[16]),