Skip to content

Commit

Permalink
removes ILO default value for references keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
ethangalebach committed Aug 16, 2022
1 parent 266b273 commit caef3f3
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions sdmx/source/ilo.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,12 @@ class Source(BaseSource):
_id = "ILO"

def modify_request_args(self, kwargs):
"""Handle two limitations of ILO's REST service.
"""Handle limitations of ILO's REST service.
1. Service returns SDMX-ML 2.0 by default, whereas :mod:`sdmx` only
supports SDMX-ML 2.1. Set ``?format=generic_2_1`` query parameter.
2. The service does not support values 'parents', 'parentsandsiblings'
(the default), and 'all' for the ``references`` query parameter.
Override the default with ``?references=none``.
.. note:: Valid values are: none, parents, parentsandsiblings,
children, descendants, all, or a specific structure reference
such as 'codelist'.
"""
super().modify_request_args(kwargs)

kwargs.setdefault("params", {})
kwargs["params"].setdefault("format", "generic_2_1")
kwargs["params"].setdefault("references", "none")
kwargs["params"].setdefault("format", "generic_2_1")

0 comments on commit caef3f3

Please sign in to comment.