make sure issue number comparisons are case-normalized in case of alpha appendage

git-svn-id: http://comictagger.googlecode.com/svn/trunk@552 6c5673fe-1810-88d6-992b-cd32ca31540c
This commit is contained in:
beville@gmail.com 2013-03-27 19:21:20 +00:00
parent b7b8060ef2
commit 1d915eb155
2 changed files with 2 additions and 2 deletions

View File

@ -450,7 +450,7 @@ class IssueIdentifier:
num_s = IssueString(issue['issue_number']).asString()
# look for a matching issue number
if num_s == keys['issue_number']:
if num_s.lower() == keys['issue_number'].lower():
# now, if we have an issue year key given, reject this one if not a match
month, year = comicVine.fetchIssueDate( issue['id'] )

View File

@ -122,7 +122,7 @@ class IssueSelectionWindow(QtGui.QDialog):
item.setFlags(QtCore.Qt.ItemIsSelectable| QtCore.Qt.ItemIsEnabled)
self.twList.setItem(row, 1, item)
if IssueString(record['issue_number']).asString() == IssueString(self.issue_number).asString():
if IssueString(record['issue_number']).asString().lower() == IssueString(self.issue_number).asString().lower():
self.initial_id = record['id']
row += 1