Skip to content
Snippets Groups Projects
Commit d0fe3da9 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

BaseUtils: v1.6.2; services should fetch data on start

parent a1d9b045
Branches
No related tags found
No related merge requests found
......@@ -20,8 +20,7 @@ class MultiCacheKeyService(ABC):
def get_data(self, cacheKey: str, fetchIntervalInSeconds: int, settings: Dict) -> Dict:
if cacheKey not in self._cache:
self._cache[cacheKey] = CacheEntry(cacheKey, fetchIntervalInSeconds, settings,
datetime.now().timestamp(), {})
self._cache[cacheKey] = CacheEntry(cacheKey, fetchIntervalInSeconds, settings, 0, {})
cacheEntry = self._cache[cacheKey]
if self.__is_data_obsolete(cacheEntry):
......
......@@ -3,7 +3,7 @@ from setuptools import setup
setup(
name='TheCodeLabs-BaseUtils',
packages=['TheCodeLabs_BaseUtils'],
version='1.6.1',
version='1.6.2',
license='MIT',
description='Useful python classes',
author='TheCodeLabs',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment