Skip to content

Commit

Permalink
style(formatting): format app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Mar 20, 2024
1 parent e4b02ab commit 75bf742
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,7 @@ def process_category_result(self, category_result):
Returns:
- Dictionary containing processed category result.
"""
if self.params.hdx_upload and ENABLE_HDX_EXPORTS :
if self.params.hdx_upload and ENABLE_HDX_EXPORTS:
return self.resource_to_hdx(
uploaded_resources=category_result.uploaded_resources,
dataset_config=self.params.dataset,
Expand Down Expand Up @@ -1618,7 +1618,9 @@ def resource_to_hdx(self, uploaded_resources, dataset_config, category):
resource["uploaded_to_hdx"] = True
else:
non_hdx_resources.append(resource)
category_name, hdx_dataset_info = uploader.upload_dataset(self.params.meta and USE_S3_TO_UPLOAD)
category_name, hdx_dataset_info = uploader.upload_dataset(
self.params.meta and USE_S3_TO_UPLOAD
)
hdx_dataset_info["resources"].extend(non_hdx_resources)
return {category_name: hdx_dataset_info}

Expand Down

0 comments on commit 75bf742

Please sign in to comment.