Skip to content

Commit

Permalink
Merge pull request #24 from mizaki/fix_nn_gui
Browse files Browse the repository at this point in the history
Fix fetching wrong issue with nn setting
  • Loading branch information
mizaki authored Aug 8, 2024
2 parents 577779a + ad31665 commit b7b63f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcd_talker/gcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ def _fetch_issue_data(self, series_id: int, issue_number: str) -> GenericMetadat
sql_base: str = """SELECT gcd_issue.id AS 'id'
FROM gcd_issue """
sql_where: str = "WHERE gcd_issue.series_id=? AND gcd_issue.number=?"
sql_where_nn: str = "WHERE gcd_issue.series_id=? AND gcd_issue.number=? OR gcd_issue.number='[nn]'"
sql_where_nn: str = "WHERE gcd_issue.series_id=? AND (gcd_issue.number=? OR gcd_issue.number='[nn]')"

if self.nn_is_issue_one and issue_number == "1":
sql_query = sql_base + sql_where_nn
Expand Down

0 comments on commit b7b63f3

Please sign in to comment.