FIX:(#247) Clicking on Add Series would return no search results for some series

This commit is contained in:
evilhero 2013-03-04 20:05:26 -05:00
parent 8173283dc0
commit b313ace328
1 changed files with 4 additions and 1 deletions

View File

@ -80,7 +80,10 @@ def findComic(name, mode, issue, limityear=None):
xmlcnt = result.getElementsByTagName('count_of_issues')[0].firstChild.wholeText
#here we can determine what called us, and either start gathering all issues or just limited ones.
#print ("n: " + str(n) + "--xmcnt" + str(xmlcnt))
if issue is not None: limiter = int(issue)
if issue is not None:
#this gets buggered up with NEW/ONGOING series because the db hasn't been updated
#to reflect the proper count. Drop it by 1 to make sure.
limiter = int(issue) - 1
else: limiter = 0
if int(xmlcnt) >= limiter: