Skip to content

Commit

Permalink
debugging run.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rohith4444 authored May 20, 2024
1 parent 2d5dd5c commit 984876c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def main():
boundarytypes, dataset, resource_names = generate_dataset(
countryiso3, country_admin_boundaries
)
logger.info("Debugging line 0")
if dataset:
dataset.update_from_yaml()
dataset[
Expand All @@ -47,9 +48,9 @@ def main():
updated_by_script="GeoBoundaries",
batch=info["batch"],
)
logger.info(f"Debugging line 2")
logger.info("Debugging line 2")
existing_order = [x["name"] for x in dataset.get_resources()]
logger.info(f"Debugging line 3")
logger.info("Debugging line 3")
if existing_order != resource_names:
sorted_resources = sorted(
dataset.get_resources(),
Expand All @@ -58,7 +59,7 @@ def main():
dataset.reorder_resources(
[x["id"] for x in sorted_resources], hxl_update=False
)
logger.info(f"Debugging line 4")
logger.info("Debugging line 4")


if __name__ == "__main__":
Expand Down

0 comments on commit 984876c

Please sign in to comment.