Skip to content

Commit 94a5c77

Browse files
author
Mike
committed
Fix for libhxl changes
1 parent cfef7bb commit 94a5c77

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ckanapi==4.7
22
defopt==6.3.0
33
email_validator==1.2.1
4-
hdx-python-country==3.2.5
4+
hdx-python-country==3.2.6
55
ndg-httpsclient==0.5.1
66
pyasn1==0.4.8
77
pyOpenSSL==22.0.0

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ install_requires =
4545
ckanapi >= 4.7
4646
defopt
4747
email_validator
48-
hdx-python-country>=3.2.5
48+
hdx-python-country>=3.2.6
4949
ndg-httpsclient
5050
pyasn1
5151
pyOpenSSL

src/hdx/data/dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from hdx.utilities.path import script_dir_plus_file
3333
from hdx.utilities.saver import save_json
3434
from hdx.utilities.uuid import is_valid_uuid
35-
from hxl.input import _munge_url
35+
from hxl.input import InputOptions, _munge_url
3636

3737
import hdx.data.filestore_helper as filestore_helper
3838
import hdx.data.organization as org_module
@@ -198,7 +198,7 @@ def save_to_json(self, path: str, follow_urls: bool = False):
198198
dataset_dict = self.get_dataset_dict()
199199
if follow_urls:
200200
for resource in dataset_dict.get("resources", tuple()):
201-
resource["url"] = _munge_url(resource["url"])
201+
resource["url"] = _munge_url(resource["url"], InputOptions())
202202
save_json(dataset_dict, path)
203203

204204
@staticmethod

0 commit comments

Comments
 (0)