Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Corey White committed Sep 19, 2023
1 parent 83feb9c commit 167412d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/temporal/t.stac.import/t.stac.import.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@

# %flag
# % key: c
# % description: Get the avaliable collections then exit
# % description: Get the available collections then exit
# % guisection: Request
# %end

# %flag
# % key: i
# % description: Get the avaliable items from collections then exit
# % description: Get the available items from collections then exit
# % guisection: Request
# %end

Expand Down Expand Up @@ -224,18 +224,18 @@ def validate_collections_option(client, collections=[]):
client (Client): A PyStac Client
Returns:
boolean: Returns true if the collection is avaliable.
boolean: Returns true if the collection is available.
"""
avaliable_collections = client.get_collections()
avaliable_collections_ids = [c.id for c in list(avaliable_collections)]
available_collections = client.get_collections()
available_collections_ids = [c.id for c in list(available_collections)]

gs.warning(_(f"Avaliable Collections: {avaliable_collections_ids}"))
gs.warning(_(f"Available Collections: {available_collections_ids}"))

if collections in avaliable_collections_ids:
if collections in available_collections_ids:
return True

for collection in collections:
if collection not in avaliable_collections_ids:
if collection not in available_collections_ids:
gs.warning(_(f"{collection} collection not found"))

return False
Expand Down

0 comments on commit 167412d

Please sign in to comment.