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"], "location": launch["pad"]["location"]["name"],
"country_code": launch["pad"]["country_code"], "country_code": launch["pad"]["country_code"],
"orbit": get_nested(launch, ["mission", "orbit"]), "orbit": get_nested(launch, ["mission", "orbit"]),
"probability": launch["probability"],
"weather_concerns": launch["weather_concerns"],
} }

View file

@ -1,8 +1,8 @@
#!/usr/bin/python3 #!/usr/bin/python3
from flipflop import WSGIServer from flipflop import WSGIServer
import sys import sys
sys.path.append('/home/edward/src/2021/agenda') sys.path.append('/home/edward/src/agenda') # isort:skip
from web_view import app from web_view import app # isort:skip
if __name__ == '__main__': if __name__ == '__main__':
WSGIServer(app).run() WSGIServer(app).run()

View file

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