mirror of
https://github.com/evilhero/mylar
synced 2024-12-24 08:42:37 +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:
|
||||
myDB.upsert("issues", values, control)
|
||||
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):
|
||||
|
|
|
@ -59,7 +59,8 @@ def pullit():
|
|||
'BOOKS',
|
||||
'COLLECTIBLES',
|
||||
'MCFARLANE TOYS',
|
||||
'New Releases']
|
||||
'New Releases',
|
||||
'Upcoming Releases']
|
||||
|
||||
excludes=['2ND PTG',
|
||||
'3RD PTG',
|
||||
|
@ -112,12 +113,14 @@ def pullit():
|
|||
for nono in not_these:
|
||||
if nono in i:
|
||||
#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()
|
||||
if i.startswith('Shipping'):
|
||||
shipdate = shipdatechk[1]
|
||||
elif i.startswith('New Releases'):
|
||||
shipdate = shipdatechk[3]
|
||||
elif i.startswith('Upcoming Releases'):
|
||||
shipdate = shipdatechk[3]
|
||||
sdsplit = shipdate.split('/')
|
||||
mo = sdsplit[0]
|
||||
dy = sdsplit[1]
|
||||
|
|
Loading…
Reference in a new issue