From 31cd7e8b973a34f538e39dc818d6e382ec9c5a84 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sat, 15 Jun 2024 23:01:31 +0100 Subject: [PATCH 1/2] Include slug in launch summary --- agenda/thespacedevs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/agenda/thespacedevs.py b/agenda/thespacedevs.py index 01a27e5..15ad455 100644 --- a/agenda/thespacedevs.py +++ b/agenda/thespacedevs.py @@ -125,6 +125,7 @@ def summarize_launch(launch: Launch) -> Summary: return { "name": launch.get("name"), + "slug": launch["slug"], "status": launch.get("status"), "net": launch.get("net"), "net_precision": net_precision, From 12a2b739e8a0a82689d6148cf2e845b57a42dda7 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sat, 15 Jun 2024 23:01:59 +0100 Subject: [PATCH 2/2] Highlight followed space launches Closes: #159 --- templates/launches.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/launches.html b/templates/launches.html index 4666a8a..a8baede 100644 --- a/templates/launches.html +++ b/templates/launches.html @@ -7,8 +7,9 @@

Space launches

{% for launch in rockets %} + {% set highlight =" bg-primary-subtle" if launch.slug in config.FOLLOW_LAUNCHES else "" %} {% set country = get_country(launch.country_code) %} -
+
{{ launch.t0_date }}