Skip to content

Commit 129b37f

Browse files
committed
Don't check size when updating resources - just check hash
1 parent e1eca82 commit 129b37f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/hdx/api/utilities/filestore_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def dataset_update_filestore_resource(
114114
size, hash = get_size_and_hash(file_to_upload, file_format)
115115
if not force_update and hash == original_resource_data.get("hash"):
116116
logger.warning(
117-
f"Not updating filestore for resource {original_resource_data['name']} as size and hash unchanged!"
117+
f"Not updating filestore for resource {original_resource_data['name']} as hash unchanged!"
118118
)
119119
if resource_data_to_update._url_backup:
120120
resource_data_to_update["url"] = resource_data_to_update._url_backup

src/hdx/data/resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def _resource_merge_hdx_update(
417417
size, hash = get_size_and_hash(self._file_to_upload, file_format)
418418
if not force_update and hash == self.data.get("hash"):
419419
logger.warning(
420-
f"Not updating filestore for resource {self.data['name']} as size and hash unchanged!"
420+
f"Not updating filestore for resource {self.data['name']} as hash unchanged!"
421421
)
422422
if self._url_backup:
423423
self._old_data["url"] = self._url_backup

0 commit comments

Comments
 (0)