fix cache age check

This commit is contained in:
Antonio J. Delgado 2025-03-27 10:49:55 +02:00
parent 6c1130c848
commit 343daa4929

View file

@ -300,7 +300,7 @@ class BackupImap:
cached_data = json.load(cache_file) cached_data = json.load(cache_file)
if ( if (
'last_update' in cached_data and 'last_update' in cached_data and
cached_data['last_update'] + self.config['max_cache_age'] > time.time() cached_data['last_update'] + self.config['max_cache_age'] < time.time()
): ):
self._log.debug( self._log.debug(
"Data in cache file '%s' is too old (%s + %s > %s), initializing cache data.", "Data in cache file '%s' is too old (%s + %s > %s), initializing cache data.",