Skip to content

Commit bc7f537

Browse files
amyfromandigithub-actions[bot]
authored andcommitted
Format code and sort imports
1 parent 8266b92 commit bc7f537

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

map-integration/macrostrat/map_integration/utils/ingestion_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def find_gis_files(
5151

5252
SLUG_SAFE_CHARS = re.compile(r"[^a-z0-9_]+")
5353

54+
5455
def normalize_slug(prefix: str, path: Path) -> tuple[str, str, str]:
5556
"""
5657
Normalize a slug and also return a human-readable name and the file extension.

map-staging/macrostrat/map_staging/Arizona Gems Scraping/new_arizona_gdb_scraper.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def strip_gdb_zip_suffixes(filename: str) -> str | None:
7171
return filename[: -len(".gdb.zip")]
7272
return None
7373

74+
7475
def load_existing_prefixes():
7576
prefixes = set()
7677
if os.path.exists(SAVE_METADATA_PATH):
@@ -82,11 +83,11 @@ def load_existing_prefixes():
8283
prefixes.add(row[0])
8384
return prefixes
8485

86+
8587
def collection_zip_exists(collection_id):
8688
return os.path.exists(os.path.join(OUTPUT_DIR, f"{collection_id}.zip"))
8789

8890

89-
9091
def get_soup(url, retries=5):
9192
for attempt in range(retries):
9293
try:
@@ -564,9 +565,6 @@ def deduplicate_file(path):
564565
else:
565566
print(f"Skipping metadata for {collection_id} (all prefixes already exist)")
566567

567-
568-
569-
570568
"""for idx, url in enumerate(tqdm(item_pages, desc="Items")):
571569
if url in visited_urls:
572570
continue # skip already processed item

0 commit comments

Comments
 (0)