[web] improvement -> environment.cache_exp in hours instead of minutes

This commit is contained in:
Vinicius Moreira
2020-12-30 15:25:08 -03:00
parent 156dd9c61b
commit 10f57efe50
12 changed files with 14 additions and 14 deletions

View File

@@ -303,7 +303,7 @@ class EnvironmentUpdater:
self.logger.error("Could not parse environment settings file timestamp: {}".format(env_ts_str))
return True
expired = env_timestamp + timedelta(minutes=settings_exp) <= datetime.utcnow()
expired = env_timestamp + timedelta(hours=settings_exp) <= datetime.utcnow()
if expired:
self.logger.info("Environment settings file has expired. It should be re-downloaded")