Skip to content

Commit

Permalink
fix(dhis2): dhis2 version number is a string
Browse files Browse the repository at this point in the history
  • Loading branch information
yannforget committed Aug 1, 2023
1 parent 7cbc2d0 commit ab1e603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openhexa/toolbox/dhis2/dhis2.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ def get(
if not when:
raise DHIS2Error("No temporal dimension provided")

if data_elements and not self.client.version >= 2.39:
if data_elements and not self.client.version >= "2.39":
raise DHIS2Error("Data elements parameter not supported for DHIS2 versions < 2.39")

params = {
Expand Down

0 comments on commit ab1e603

Please sign in to comment.