Skip to content

Commit

Permalink
For Debugging run.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rohith4444 authored May 20, 2024
1 parent b78a706 commit 94b46d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ def main():
dataset[
"notes"
] = f"This dataset contains the following administrative boundaries: {', '.join(boundarytypes)}. \n \n{dataset['notes']}"
logger.info(f"Debugging line 1")
dataset.create_in_hdx(
remove_additional_resources=True,
hxl_update=False,
updated_by_script="GeoBoundaries",
batch=info["batch"],
)
logger.info(f"Debugging line 2")
existing_order = [x["name"] for x in dataset.get_resources()]
logger.info(f"Debugging line 3")
if existing_order != resource_names:
sorted_resources = sorted(
dataset.get_resources(),
Expand All @@ -55,6 +58,7 @@ def main():
dataset.reorder_resources(
[x["id"] for x in sorted_resources], hxl_update=False
)
logger.info(f"Debugging line 4")


if __name__ == "__main__":
Expand Down

0 comments on commit 94b46d1

Please sign in to comment.