Skip to content

Commit

Permalink
fix(dhis2): support no cache
Browse files Browse the repository at this point in the history
  • Loading branch information
yannforget committed Aug 1, 2023
1 parent e360b16 commit 4299c94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openhexa/toolbox/dhis2/dhis2.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ def __init__(self, connection: DHIS2Connection, cache_dir: str = None):
named after the DHIS2 instance domain.
"""
self.api = Api(connection)
self.cache_dir = self.setup_cache(cache_dir)
if cache_dir:
self.cache_dir = self.setup_cache(cache_dir)
self.meta = Metadata(self)
self.version = self.meta.system_info().get("version")
self.data_value_sets = DataValueSets(self)
Expand Down

0 comments on commit 4299c94

Please sign in to comment.