FIX:(#1879) When searching for Story-Arcs, would return an error message in some instances due to an improper variable mismatch, FIX: Story-Arc search results would always return the Year as being None

This commit is contained in:
evilhero 2018-03-05 12:25:36 -05:00
parent feaf102ed3
commit e35e36efd1
2 changed files with 5 additions and 5 deletions

View File

@ -1856,13 +1856,13 @@ def listStoryArcs():
library = {}
myDB = db.DBConnection()
# Get Distinct Arc IDs
list = myDB.select("SELECT DISTINCT(StoryArcID) FROM storyarcs");
for row in list:
library[row['StoryArcID']] = row['StoryArcID']
#list = myDB.select("SELECT DISTINCT(StoryArcID) FROM storyarcs");
#for row in list:
# library[row['StoryArcID']] = row['StoryArcID']
# Get Distinct CV Arc IDs
list = myDB.select("SELECT DISTINCT(CV_ArcID) FROM storyarcs");
for row in list:
library[row['CV_ArcID']] = row['CV_ArcID']
library[row['CV_ArcID']] = {'comicid': row['CV_ArcID']}
return library
def listoneoffs(weeknumber, year):

View File

@ -470,7 +470,7 @@ def storyarcinfo(xmlid):
if firstid is not None:
firstdom = cv.pulldetails(comicid=None, type='firstissue', issueid=firstid)
logger.fdebug('success')
arcyear = cv.GetFirstIssue(firstid,firstdom)
arcyear = cv.Getissue(firstid,firstdom,'firstissue')
except:
logger.fdebug('Unable to retrieve first issue details. Not caclulating at this time.')