mirror of
https://github.com/evilhero/mylar
synced 2025-03-09 21:33:42 +00:00
FIX: count error on invalid issnum (will address later)
This commit is contained in:
parent
bb3cde2c92
commit
81a8029480
2 changed files with 9 additions and 8 deletions
|
@ -717,14 +717,14 @@ def issuedigits(issnum):
|
|||
if str(issnum).isdigit():
|
||||
int_issnum = int( issnum ) * 1000
|
||||
else:
|
||||
count = 0
|
||||
for char in issnum:
|
||||
if char.isalpha():
|
||||
count += 1
|
||||
if count > 5:
|
||||
logger.error('This is not an issue number - not enough numerics to parse')
|
||||
int_issnum = 999999999999999
|
||||
return int_issnum
|
||||
#count = 0
|
||||
#for char in issnum:
|
||||
# if char.isalpha():
|
||||
# count += 1
|
||||
#if count > 5:
|
||||
# logger.error('This is not an issue number - not enough numerics to parse')
|
||||
# int_issnum = 999999999999999
|
||||
# return int_issnum
|
||||
if 'au' in issnum.lower() and issnum[:1].isdigit():
|
||||
int_issnum = (int(issnum[:-2]) * 1000) + ord('a') + ord('u')
|
||||
elif 'ai' in issnum.lower() and issnum[:1].isdigit():
|
||||
|
|
|
@ -454,6 +454,7 @@ class WebInterface(object):
|
|||
logger.fdebug("Deleted nzblog table.")
|
||||
myDB.action('CREATE TABLE IF NOT EXISTS nzblog (IssueID TEXT, NZBName TEXT, SARC TEXT)')
|
||||
logger.fdebug("Re-created nzblog table.")
|
||||
raise cherrypy.HTTPRedirect("history")
|
||||
wipenzblog.exposed = True
|
||||
|
||||
def refreshArtist(self, ComicID):
|
||||
|
|
Loading…
Add table
Reference in a new issue