Bug fix missing space launch data

This commit is contained in:
Edward Betts 2023-12-09 11:37:52 +00:00
parent 3b89efa65f
commit 1a84802e1d

View file

@ -96,6 +96,8 @@ def summarize_launch(launch: Launch) -> Summary:
t0_date, t0_time = format_time(launch["net"], net_precision)
orbit = launch["mission"]["orbit"] if launch["mission"] else None
return {
"name": launch["name"],
"status": launch["status"],
@ -110,11 +112,12 @@ def summarize_launch(launch: Launch) -> Summary:
"launch_provider_type": launch["launch_service_provider"]["type"],
"rocket": launch["rocket"]["configuration"]["full_name"],
"mission": launch["mission"],
"mission_name": (launch["mission"]["name"] if launch["mission"] else None),
"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"],
"orbit": orbit,
}