Skip to content

Commit

Permalink
another typo
Browse files Browse the repository at this point in the history
  • Loading branch information
baloola committed Sep 19, 2023
1 parent b203c6a commit ccfa4b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stac/stac-generator/stac-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ 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")
if len(times >= 2):
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 ccfa4b3

Please sign in to comment.