Show more space launch details.
This commit is contained in:
parent
6ed9e520ed
commit
10bc7d85b5
|
@ -81,7 +81,7 @@ def summarize_launch(launch: Launch) -> Summary:
|
|||
|
||||
return {
|
||||
"name": launch["name"],
|
||||
"status": launch["status"]["abbrev"],
|
||||
"status": launch["status"],
|
||||
"t0_date": t0_date,
|
||||
"t0_time": t0_time,
|
||||
"window_start": launch["window_start"],
|
||||
|
@ -89,10 +89,13 @@ def summarize_launch(launch: Launch) -> Summary:
|
|||
"launch_provider": launch_provider,
|
||||
"launch_provider_abbrev": launch_provider_abbrev,
|
||||
"launch_provider_type": launch["launch_service_provider"]["type"],
|
||||
"rocket": launch["rocket"]["configuration"]["name"],
|
||||
"mission": launch["mission"]["name"] if launch["mission"] else "N/A",
|
||||
"rocket": launch["rocket"]["configuration"]["full_name"],
|
||||
"mission": launch["mission"],
|
||||
"pad_name": launch["pad"]["name"],
|
||||
"pad_wikipedia_url": launch["pad"]["wiki_url"],
|
||||
"location": launch["pad"]["location"]["name"],
|
||||
"country_code": launch["pad"]["country_code"],
|
||||
"orbit": launch["mission"]["orbit"],
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -78,26 +78,40 @@
|
|||
<p>{{ market }}</p>
|
||||
{% endfor %}
|
||||
|
||||
<h3>Rocket launches</h3>
|
||||
<h3>Space launches</h3>
|
||||
<table class="table table-hover">
|
||||
{% for launch in rockets %}
|
||||
<tr>
|
||||
<td class="text-nowrap text-end">{{ launch.t0_date }}
|
||||
|
||||
{% if launch.t0_time %}<br/>{{ launch.t0_time }}{% endif %}</td>
|
||||
<td class="text-nowrap">{{ launch.status }}</td>
|
||||
<td>{{ launch.rocket }}<br>{{launch.mission }}</td>
|
||||
<td>
|
||||
<td class="text-nowrap"><abbr title="{{ launch.status.name }}">{{ launch.status.abbrev }}</abbr></td>
|
||||
<td>{{ launch.rocket }}
|
||||
—
|
||||
{{launch.mission.name }}
|
||||
—
|
||||
|
||||
{% if launch.launch_provider_abbrev %}
|
||||
<abbr title="{{ launch.launch_provider }}">{{ launch.launch_provider_abbrev }}</abbr>
|
||||
{% else %}
|
||||
{{ launch.launch_provider }}
|
||||
{% endif %}
|
||||
({{ launch.launch_provider_type }})</td>
|
||||
<td>{{ launch.location }}</td>
|
||||
({{ launch.launch_provider_type }})
|
||||
—
|
||||
{{ launch.orbit.name }} ({{ launch.orbit.abbrev }})
|
||||
<br/>
|
||||
<a href="{{ launch.pad_wikipedia_url }}">{{ launch.pad_name }}</a>
|
||||
— {{ launch.location }}<br/>
|
||||
|
||||
{% for line in launch.mission.description.splitlines() %}
|
||||
<p>{{ line }}</p>
|
||||
{% endfor %}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue