This commit is contained in:
Edward Betts 2024-07-08 12:01:48 +01:00
parent 0683c98e6f
commit 0c36591e2f

View file

@ -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)