From 99cd3e25ebc22472d79d1ce5d0583459223dfaee Mon Sep 17 00:00:00 2001 From: evilhero Date: Tue, 16 Oct 2012 11:53:46 -0400 Subject: [PATCH] Fix for popup error when doing multiple selections, removed unnecessary print statements from importer --- data/interfaces/default/artistredone.html | 2 +- mylar/importer.py | 2 +- mylar/webserve.py | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/data/interfaces/default/artistredone.html b/data/interfaces/default/artistredone.html index 1b734343..a76536db 100755 --- a/data/interfaces/default/artistredone.html +++ b/data/interfaces/default/artistredone.html @@ -182,7 +182,7 @@
Mark selected issues as - diff --git a/mylar/importer.py b/mylar/importer.py index cfa34987..bea12f3e 100755 --- a/mylar/importer.py +++ b/mylar/importer.py @@ -490,7 +490,7 @@ def GCDimport(gcomicid): #---NEW.code try: gcdval = gcdinfo['gcdchoice'][bb] - print ("gcdval: " + str(gcdval)) + #print ("gcdval: " + str(gcdval)) except IndexError: #account for gcd variation here if gcdinfo['gcdvariation'] == 'gcd': diff --git a/mylar/webserve.py b/mylar/webserve.py index a2afad75..eb2aca3e 100755 --- a/mylar/webserve.py +++ b/mylar/webserve.py @@ -218,7 +218,7 @@ class WebInterface(object): else: newaction = action for IssueID in args: - if IssueID is None: break + if IssueID is None: continue else: mi = myDB.action("SELECT * FROM issues WHERE IssueID=?",[IssueID]).fetchone() miyr = myDB.action("SELECT ComicYear FROM comics WHERE ComicID=?", [mi['ComicID']]).fetchone() @@ -231,10 +231,10 @@ class WebInterface(object): if len(issuesToAdd) > 0: logger.debug("Marking issues: %s" % issuesToAdd) threading.Thread(target=search.searchIssueIDList, args=[issuesToAdd]).start() - if ComicID: - raise cherrypy.HTTPRedirect("artistPage?ComicID=%s" % ComicID) - else: - raise cherrypy.HTTPRedirect("upcoming") + #if IssueID: + raise cherrypy.HTTPRedirect("artistPage?ComicID=%s" % mi['ComicID']) + #else: + # raise cherrypy.HTTPRedirect("upcoming") markissues.exposed = True def addArtists(self, **args):