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