Fix retrieving issues from cache when volume is incomplete
This commit is contained in:
parent
73dd33dc64
commit
618e15600f
@ -450,6 +450,8 @@ class ComicCacher:
|
||||
set_slots = ""
|
||||
|
||||
for key in data:
|
||||
if data[key] is None:
|
||||
continue
|
||||
|
||||
if keys != "":
|
||||
keys += ", "
|
||||
|
@ -327,10 +327,11 @@ class ComicVineTalker:
|
||||
|
||||
def fetch_issues_by_volume(self, series_id: int) -> list[resulttypes.CVIssuesResults]:
|
||||
# before we search online, look in our cache, since we might already have this info
|
||||
volume_data = self.fetch_volume_data(series_id)
|
||||
cvc = ComicCacher()
|
||||
cached_volume_issues_result = cvc.get_volume_issues_info(series_id, self.source_name)
|
||||
|
||||
if cached_volume_issues_result:
|
||||
if len(cached_volume_issues_result) >= volume_data["count_of_issues"]:
|
||||
return cached_volume_issues_result
|
||||
|
||||
params = {
|
||||
|
Loading…
Reference in New Issue
Block a user