From 19ef9c24bae4855f2eca22fd8eb603342dfafe49 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sat, 11 Jan 2025 15:05:17 -0600 Subject: [PATCH] Show space launch images --- agenda/thespacedevs.py | 1 + templates/launches.html | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/agenda/thespacedevs.py b/agenda/thespacedevs.py index e296e54..b839065 100644 --- a/agenda/thespacedevs.py +++ b/agenda/thespacedevs.py @@ -145,6 +145,7 @@ def summarize_launch(launch: Launch) -> Summary: "orbit": get_nested(launch, ["mission", "orbit"]), "probability": launch["probability"], "weather_concerns": launch["weather_concerns"], + "image": launch.get("image"), } diff --git a/templates/launches.html b/templates/launches.html index 47dbd05..09be1f7 100644 --- a/templates/launches.html +++ b/templates/launches.html @@ -72,6 +72,11 @@
+ {% if launch.image %} +
+ +
+ {% endif %} {{ country.flag }} {{ launch.rocket.full_name }} –