From 0c36591e2f6255fc099bd30908fae5785d5fddf1 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Mon, 8 Jul 2024 12:01:48 +0100 Subject: [PATCH] Bug fix --- agenda/thespacedevs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/agenda/thespacedevs.py b/agenda/thespacedevs.py index 36993e9..8ca9428 100644 --- a/agenda/thespacedevs.py +++ b/agenda/thespacedevs.py @@ -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)