Bug fix
This commit is contained in:
parent
0683c98e6f
commit
0c36591e2f
|
@ -156,7 +156,9 @@ def get_launches(
|
|||
) -> list[Summary]:
|
||||
"""Get rocket launches with caching."""
|
||||
now = datetime.now()
|
||||
existing = [x for x in (filename_timestamp(f) for f in os.listdir(rocket_dir)) if x]
|
||||
existing = [
|
||||
x for x in (filename_timestamp(f, "json") for f in os.listdir(rocket_dir)) if x
|
||||
]
|
||||
|
||||
existing.sort(reverse=True)
|
||||
|
||||
|
|
Loading…
Reference in a new issue