Skip to content

Commit

Permalink
more typos
Browse files Browse the repository at this point in the history
  • Loading branch information
baloola committed Sep 19, 2023
1 parent 9fd5b39 commit b203c6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stac/stac-generator/stac-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def create_axes(axes):
if "Time" in axes.keys():
times = axes["Time"].split('\n')
start = extract_value_from_string(r'\d{4}-\d{2}-\d{2}', times[0], "1990-01-01")

end = extract_value_from_string(r'\d{4}-\d{2}-\d{2}', times[1], "2023-01-01")
if len(times >= 2):
end = extract_value_from_string(r'\d{4}-\d{2}-\d{2}', times[1], "2023-01-01")
if start and end:
start_date = datetime.strptime(start, "%Y-%m-%d").isoformat()

Expand Down

0 comments on commit b203c6a

Please sign in to comment.