Skip to content

Commit 15e5833

Browse files
author
Patrick Vos
committed
Fix lastTime in the future after correcting system time (not updating cache)
1 parent 279b071 commit 15e5833

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sickbeard/tvcache.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ def _getLastUpdate(self):
166166

167167
if sqlResults:
168168
lastTime = int(sqlResults[0]["time"])
169+
if lastTime > int(time.mktime(datetime.datetime.today().timetuple())):
170+
lastTime = 0
171+
169172
else:
170173
lastTime = 0
171174

0 commit comments

Comments
 (0)