From 5d8e0278ce91da3e0d04d1c90ed34e1d835a7319 Mon Sep 17 00:00:00 2001 From: evilhero Date: Wed, 31 Jul 2013 10:41:43 -0400 Subject: [PATCH] FIX:(#476)(#485) Invalid literal when rechecking/rescanning files. --- mylar/helpers.py | 8 ++++---- mylar/importer.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mylar/helpers.py b/mylar/helpers.py index a7dc158f..7527c3bd 100755 --- a/mylar/helpers.py +++ b/mylar/helpers.py @@ -666,13 +666,13 @@ def issuedigits(issnum): except ValueError, e: #this will account for any alpha in a issue#, so long as it doesn't have decimals. x = 0 - tstord = 0 - issno = 0 + tstord = None + issno = None while (x < len(issnum)): if issnum[x].isalpha(): #take first occurance of alpha in string and carry it through - tstord = issnum[x:] - issno = issnum[:x] + tstord = issnum[x:].rstrip() + issno = issnum[:x].rstrip() break x+=1 if tstord is not None and issno is not None: diff --git a/mylar/importer.py b/mylar/importer.py index 23f4b87d..8b81960a 100755 --- a/mylar/importer.py +++ b/mylar/importer.py @@ -635,13 +635,13 @@ def addComictoDB(comicid,mismatch=None,pullupd=None,imported=None,ogcname=None): else: raise ValueError except ValueError, e: x = 0 - tstord = 0 - issno = 0 + tstord = None + issno = None while (x < len(issnum)): if issnum[x].isalpha(): #take first occurance of alpha in string and carry it through - tstord = issnum[x:] - issno = issnum[:x] + tstord = issnum[x:].rstrip() + issno = issnum[:x].rstrip() break x+=1 if tstord is not None and issno is not None: