Skip to content

Commit

Permalink
Updates per PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanpadams authored Oct 17, 2024
1 parent 5c5eb5e commit 57d40b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pds/registry/utils/geostac/create_lola_pds4.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def create_product_external(item):

last_slash_i = item["assets"]["data"]["href"].rfind("/")
file = "data/" +item["assets"]["data"]["href"][last_slash_i + 1:]
print(f'file is on {item["assets"]["data"]["href"]},fake file is on {file}')
logging.info(f'file is on {item["assets"]["data"]["href"]},fake file is on {file}')
open("lola_xml/product_external/" + file, 'a').close()

# fill out template params
Expand Down Expand Up @@ -150,7 +150,7 @@ def create_product_browse(item):

last_slash_i = item["assets"]["thumbnail"]["href"].rfind("/")
file = "data/" + item["assets"]["thumbnail"]["href"][last_slash_i + 1:]
print(f'file is on {item["assets"]["thumbnail"]["href"]},fake file is on {file}')
logging.info(f'file is on {item["assets"]["thumbnail"]["href"]},fake file is on {file}')
open("lola_xml/product_browse/" + file, 'a').close()

data_type = item["assets"]["thumbnail"]["type"]
Expand Down

0 comments on commit 57d40b8

Please sign in to comment.