Allow results to include comics in the following year fixes #638

This commit is contained in:
Timmy Welch 2024-06-08 19:17:42 -07:00
parent 6351afb36c
commit 5e6682566f
2 changed files with 2 additions and 2 deletions

View File

@ -413,7 +413,7 @@ class IssueIdentifier:
# remove any series that starts after the issue year
if terms["year"] is not None and item.start_year is not None:
if terms["year"] < item.start_year:
if item.start_year > terms["year"] + 1:
date_approved = False
for name in [item.name, *item.aliases]:

View File

@ -371,7 +371,7 @@ class ComicVineTalker(ComicTalker):
int_year = utils.xlate_int(year)
if int_year is not None:
flt += f",cover_date:{int_year}-1-1|{int_year + 1}-1-1"
flt += f",cover_date:{int_year}-1-1|{int_year + 1}-12-31"
params: dict[str, str | int] = { # CV uses volume to mean series
"api_key": self.api_key,