Skip to content

Commit

Permalink
Update for munge_url from libhxl
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike committed Jul 15, 2022
1 parent 0ab5539 commit 7901e2d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ckanapi==4.7
defopt==6.3.0
email_validator==1.2.1
hdx-python-country==3.2.9
hdx-python-country==3.3.0
ndg-httpsclient==0.5.1
pyasn1==0.4.8
pyOpenSSL==22.0.0
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ install_requires =
ckanapi >= 4.7
defopt
email_validator
hdx-python-country>=3.2.9
hdx-python-country>=3.3.0
ndg-httpsclient
pyasn1
pyOpenSSL
Expand Down
4 changes: 2 additions & 2 deletions src/hdx/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from hdx.utilities.path import script_dir_plus_file
from hdx.utilities.saver import save_json
from hdx.utilities.uuid import is_valid_uuid
from hxl.input import InputOptions, _munge_url
from hxl.input import InputOptions, munge_url

import hdx.data.filestore_helper as filestore_helper
import hdx.data.organization as org_module
Expand Down Expand Up @@ -198,7 +198,7 @@ def save_to_json(self, path: str, follow_urls: bool = False):
dataset_dict = self.get_dataset_dict()
if follow_urls:
for resource in dataset_dict.get("resources", tuple()):
resource["url"] = _munge_url(resource["url"], InputOptions())
resource["url"] = munge_url(resource["url"], InputOptions())
save_json(dataset_dict, path)

@staticmethod
Expand Down

0 comments on commit 7901e2d

Please sign in to comment.