Skip to content

Commit

Permalink
fix(hdx-lib): upgraded the hdx lib to fix last-modified bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Apr 26, 2024
1 parent 2878483 commit f28af75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit f28af75

Please sign in to comment.