mirror of
https://github.com/evilhero/mylar
synced 2025-03-12 15:02:55 +00:00
parent
16ddfad398
commit
5d8e0278ce
2 changed files with 8 additions and 8 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue