mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 02:52:20 -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:
parent
6adbdb5e86
commit
3e3e6d961d
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user