mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 03:22:22 -05:00
Removed internal cache update checks, cache updates will now perform at the interval setting time you set for daily searches.
This commit is contained in:
parent
8141d8a170
commit
e09c4976a5
@ -243,10 +243,10 @@ class TVCache():
|
||||
|
||||
def shouldUpdate(self):
|
||||
# if we've updated recently then skip the update
|
||||
if datetime.datetime.today() - self.lastUpdate < datetime.timedelta(minutes=self.minTime):
|
||||
logger.log(u"Last update was too soon, using old cache: today()-" + str(self.lastUpdate) + "<" + str(
|
||||
datetime.timedelta(minutes=self.minTime)), logger.DEBUG)
|
||||
return False
|
||||
#if datetime.datetime.today() - self.lastUpdate < datetime.timedelta(minutes=self.minTime):
|
||||
# logger.log(u"Last update was too soon, using old cache: today()-" + str(self.lastUpdate) + "<" + str(
|
||||
# datetime.timedelta(minutes=self.minTime)), logger.DEBUG)
|
||||
# return False
|
||||
|
||||
return True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user