mirror of
https://github.com/evilhero/mylar
synced 2025-01-03 21:44:39 +00:00
Fix for popup error when doing multiple selections, removed unnecessary print statements from importer
This commit is contained in:
parent
c791e0a2fc
commit
99cd3e25eb
3 changed files with 7 additions and 7 deletions
|
@ -182,7 +182,7 @@
|
||||||
|
|
||||||
<form action="markissues" method="get" id="markissues">
|
<form action="markissues" method="get" id="markissues">
|
||||||
<div id="markissue">Mark selected issues as
|
<div id="markissue">Mark selected issues as
|
||||||
<select name="action" onChange="doAjaxCall('markissues',$(this),'table',true);">
|
<select name="action" onChange="doAjaxCall('markissues',$(this),'table',true);" data-success="selected issues marked">
|
||||||
<option disabled="disabled" selected="selected">Choose...</option>
|
<option disabled="disabled" selected="selected">Choose...</option>
|
||||||
<option value="Wanted">Wanted</option>
|
<option value="Wanted">Wanted</option>
|
||||||
<option value="Skipped">Skipped</option>
|
<option value="Skipped">Skipped</option>
|
||||||
|
|
|
@ -490,7 +490,7 @@ def GCDimport(gcomicid):
|
||||||
#---NEW.code
|
#---NEW.code
|
||||||
try:
|
try:
|
||||||
gcdval = gcdinfo['gcdchoice'][bb]
|
gcdval = gcdinfo['gcdchoice'][bb]
|
||||||
print ("gcdval: " + str(gcdval))
|
#print ("gcdval: " + str(gcdval))
|
||||||
except IndexError:
|
except IndexError:
|
||||||
#account for gcd variation here
|
#account for gcd variation here
|
||||||
if gcdinfo['gcdvariation'] == 'gcd':
|
if gcdinfo['gcdvariation'] == 'gcd':
|
||||||
|
|
|
@ -218,7 +218,7 @@ class WebInterface(object):
|
||||||
else:
|
else:
|
||||||
newaction = action
|
newaction = action
|
||||||
for IssueID in args:
|
for IssueID in args:
|
||||||
if IssueID is None: break
|
if IssueID is None: continue
|
||||||
else:
|
else:
|
||||||
mi = myDB.action("SELECT * FROM issues WHERE IssueID=?",[IssueID]).fetchone()
|
mi = myDB.action("SELECT * FROM issues WHERE IssueID=?",[IssueID]).fetchone()
|
||||||
miyr = myDB.action("SELECT ComicYear FROM comics WHERE ComicID=?", [mi['ComicID']]).fetchone()
|
miyr = myDB.action("SELECT ComicYear FROM comics WHERE ComicID=?", [mi['ComicID']]).fetchone()
|
||||||
|
@ -231,10 +231,10 @@ class WebInterface(object):
|
||||||
if len(issuesToAdd) > 0:
|
if len(issuesToAdd) > 0:
|
||||||
logger.debug("Marking issues: %s" % issuesToAdd)
|
logger.debug("Marking issues: %s" % issuesToAdd)
|
||||||
threading.Thread(target=search.searchIssueIDList, args=[issuesToAdd]).start()
|
threading.Thread(target=search.searchIssueIDList, args=[issuesToAdd]).start()
|
||||||
if ComicID:
|
#if IssueID:
|
||||||
raise cherrypy.HTTPRedirect("artistPage?ComicID=%s" % ComicID)
|
raise cherrypy.HTTPRedirect("artistPage?ComicID=%s" % mi['ComicID'])
|
||||||
else:
|
#else:
|
||||||
raise cherrypy.HTTPRedirect("upcoming")
|
# raise cherrypy.HTTPRedirect("upcoming")
|
||||||
markissues.exposed = True
|
markissues.exposed = True
|
||||||
|
|
||||||
def addArtists(self, **args):
|
def addArtists(self, **args):
|
||||||
|
|
Loading…
Reference in a new issue