1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

fix_checkdates_in_the_future (itofzo)

Fix lastBacklog date in the future after correcting system time
  Fix lastTime in the future after correcting system time (not updating cache)
This commit is contained in:
echel0n 2014-03-11 13:22:00 -07:00
parent 6adbdb5e86
commit 3e3e6d961d
2 changed files with 4 additions and 0 deletions

View File

@ -151,6 +151,8 @@ class BacklogSearcher:
lastBacklog = 1
else:
lastBacklog = int(sqlResults[0]["last_backlog"])
if lastBacklog > datetime.date.today().toordinal():
lastBacklog = 1
self._lastBacklog = lastBacklog
return self._lastBacklog

View File

@ -174,6 +174,8 @@ class TVCache():
if sqlResults:
lastTime = int(sqlResults[0]["time"])
if lastTime > int(time.mktime(datetime.datetime.today().timetuple())):
lastTime = 0
else:
lastTime = 0