Skip to content

Commit

Permalink
Fixed searching for issues without release date (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
Casvt committed Jul 23, 2023
1 parent c664c9d commit e35c26d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def manual_search(
"SELECT calculated_issue_number, date FROM issues WHERE volume_id = ?;",
(volume_id,)
)
issue_numbers = {i[0]: int(i[1].split('-')[0]) for i in cursor}
issue_numbers = {i[0]: int(i[1].split('-')[0]) if i[1] else None for i in cursor}
for result in results:
result.update(_check_match(result, title, volume_number, issue_numbers, calculated_issue_number, year))

Expand Down

0 comments on commit e35c26d

Please sign in to comment.