From f28af75ba5621b0912c75f84ad9c26226eed8a1f Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Fri, 26 Apr 2024 06:50:03 +0545 Subject: [PATCH] fix(hdx-lib): upgraded the hdx lib to fix last-modified bug --- requirements.txt | 2 +- src/app.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 1835060c..997de8ad 100644 --- a/requirements.txt +++ b/requirements.txt @@ -40,7 +40,7 @@ flower==2.0.1 duckdb==0.9.2 ##hdx -hdx-python-api==6.2.6 +hdx-python-api==6.2.8 ## only needed if postgres is used as celery backend SQLAlchemy==2.0.25 diff --git a/src/app.py b/src/app.py index d1343188..d4f2cfbb 100644 --- a/src/app.py +++ b/src/app.py @@ -1467,7 +1467,7 @@ def process_export_format(export_format): resource["format"] = export_format.suffix resource["description"] = export_format.driver_name resource["size"] = os.path.getsize(zip_path) - resource["last_modified"] = datetime.now().isoformat() + # resource["last_modified"] = datetime.now().isoformat() logging.info( "Done %s:%s in %s", category_name.lower(), @@ -1890,6 +1890,7 @@ def upload_dataset(self, dump_config_to_s3=False): self.dataset.set_time_period(datetime.now()) try: + print(self.dataset.resources) self.dataset.create_in_hdx( allow_no_resources=True, hxl_update=False,