mirror of
https://github.com/evilhero/mylar
synced 2024-12-24 16:51:42 +00:00
FIX: Error on startup with Weekly Pull list (site changes)
This commit is contained in:
parent
533076caff
commit
4d1555ea99
2 changed files with 6 additions and 3 deletions
|
@ -149,7 +149,7 @@ def upcoming_update(ComicID, ComicName, IssueNumber, IssueDate):
|
||||||
else:
|
else:
|
||||||
myDB.upsert("issues", values, control)
|
myDB.upsert("issues", values, control)
|
||||||
else:
|
else:
|
||||||
logger.fdebug("Issues don't match for some reason... db issue: " + str(issuechk['Issue_Number']) + " ...weekly new issue: " + str(IssueNumber))
|
logger.fdebug("Issues don't match for some reason...weekly new issue: " + str(IssueNumber))
|
||||||
|
|
||||||
|
|
||||||
def weekly_update(ComicName):
|
def weekly_update(ComicName):
|
||||||
|
|
|
@ -59,7 +59,8 @@ def pullit():
|
||||||
'BOOKS',
|
'BOOKS',
|
||||||
'COLLECTIBLES',
|
'COLLECTIBLES',
|
||||||
'MCFARLANE TOYS',
|
'MCFARLANE TOYS',
|
||||||
'New Releases']
|
'New Releases',
|
||||||
|
'Upcoming Releases']
|
||||||
|
|
||||||
excludes=['2ND PTG',
|
excludes=['2ND PTG',
|
||||||
'3RD PTG',
|
'3RD PTG',
|
||||||
|
@ -112,12 +113,14 @@ def pullit():
|
||||||
for nono in not_these:
|
for nono in not_these:
|
||||||
if nono in i:
|
if nono in i:
|
||||||
#let's try and grab the date for future pull checks
|
#let's try and grab the date for future pull checks
|
||||||
if i.startswith('Shipping') or i.startswith('New Releases'):
|
if i.startswith('Shipping') or i.startswith('New Releases') or i.startswith('Upcoming Releases'):
|
||||||
shipdatechk = i.split()
|
shipdatechk = i.split()
|
||||||
if i.startswith('Shipping'):
|
if i.startswith('Shipping'):
|
||||||
shipdate = shipdatechk[1]
|
shipdate = shipdatechk[1]
|
||||||
elif i.startswith('New Releases'):
|
elif i.startswith('New Releases'):
|
||||||
shipdate = shipdatechk[3]
|
shipdate = shipdatechk[3]
|
||||||
|
elif i.startswith('Upcoming Releases'):
|
||||||
|
shipdate = shipdatechk[3]
|
||||||
sdsplit = shipdate.split('/')
|
sdsplit = shipdate.split('/')
|
||||||
mo = sdsplit[0]
|
mo = sdsplit[0]
|
||||||
dy = sdsplit[1]
|
dy = sdsplit[1]
|
||||||
|
|
Loading…
Reference in a new issue