Fix: Issue status would change from wanted to skipped (and vice-versa) on every start. Fix: Upcoming Issues should stay in Wanted status now until retrieved/changed.

This commit is contained in:
evilhero 2013-01-01 15:32:22 -05:00
parent 0381d9c918
commit 2061429a1d
2 changed files with 7 additions and 4 deletions

View File

@ -331,8 +331,8 @@ def addComictoDB(comicid,mismatch=None,pullupd=None):
}
if mylar.AUTOWANT_ALL:
newValueDict['Status'] = "Wanted"
#elif release_dict['releasedate'] > helpers.today() and mylar.AUTOWANT_UPCOMING:
# newValueDict['Status'] = "Wanted"
elif issdate > helpers.today() and mylar.AUTOWANT_UPCOMING:
newValueDict['Status'] = "Wanted"
else:
newValueDict['Status'] = "Skipped"
@ -601,8 +601,8 @@ def GCDimport(gcomicid, pullupd=None):
if mylar.AUTOWANT_ALL:
newValueDict['Status'] = "Wanted"
#elif release_dict['releasedate'] > helpers.today() and mylar.AUTOWANT_UPCOMING:
# newValueDict['Status'] = "Wanted"
elif issdate > helpers.today() and mylar.AUTOWANT_UPCOMING:
newValueDict['Status'] = "Wanted"
else:
newValueDict['Status'] = "Skipped"

View File

@ -82,6 +82,9 @@ def upcoming_update(ComicID, ComicName, IssueNumber, IssueDate):
elif issuechk['Status'] == "Downloaded":
values = { "Status": "Downloaded"}
newValue['Status'] = "Downloaded"
elif issuechk['Status'] == "Wanted":
values = { "Status": "Wanted"}
newValue['Status'] = "Wanted"
else:
values = { "Status": "Skipped"}
newValue['Status'] = "Skipped"