Compare commits

...

3 commits

3 changed files with 11 additions and 2 deletions

View file

@ -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"],
}

View file

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

View file

@ -68,6 +68,7 @@
<div class="col-md-1 text-md-nowrap">
<span class="d-md-none">launch status:</span>
<abbr title="{{ launch.status.name }}">{{ launch.status.abbrev }}</abbr>
{% if launch.probability %}{{ launch.probability }}%{% endif %}
</div>
<div class="col">
<div>
@ -114,6 +115,12 @@
{% else %}
<p>No description.</p>
{% endif %}
{% if launch.weather_concerns %}
<h4>Weather concerns</h4>
{% for line in launch.weather_concerns.splitlines() %}
<p>{{ line }}</p>
{% endfor %}
{% endif %}
</div>
</div>
</div>