diff --git a/agenda/thespacedevs.py b/agenda/thespacedevs.py index acc6758..e296e54 100644 --- a/agenda/thespacedevs.py +++ b/agenda/thespacedevs.py @@ -143,6 +143,8 @@ def summarize_launch(launch: Launch) -> Summary: "location": launch["pad"]["location"]["name"], "country_code": launch["pad"]["country_code"], "orbit": get_nested(launch, ["mission", "orbit"]), + "probability": launch["probability"], + "weather_concerns": launch["weather_concerns"], } diff --git a/run.fcgi b/run.fcgi index 851231a..4235124 100755 --- a/run.fcgi +++ b/run.fcgi @@ -1,8 +1,8 @@ #!/usr/bin/python3 from flipflop import WSGIServer import sys -sys.path.append('/home/edward/src/2021/agenda') -from web_view import app +sys.path.append('/home/edward/src/agenda') # isort:skip +from web_view import app # isort:skip if __name__ == '__main__': WSGIServer(app).run() diff --git a/templates/launches.html b/templates/launches.html index 2adcfc3..9e725df 100644 --- a/templates/launches.html +++ b/templates/launches.html @@ -68,6 +68,7 @@
No description.
{% endif %} + {% if launch.weather_concerns %} +{{ line }}
+ {% endfor %} + {% endif %}