Fix rocket name

This commit is contained in:
Edward Betts 2024-07-02 07:15:19 +01:00
parent f4557d14e8
commit 52810ca676

View file

@ -266,7 +266,10 @@ async def get_data(now: datetime, config: flask.config.Config) -> AgendaData:
if not dt:
continue
rocket_name = f'{launch["rocket"]}: {launch["mission_name"] or "[no mission]"}'
rocket_name = (
f'{launch["rocket"]["full_name"]}: '
+ f'{launch["mission_name"] or "[no mission]"}'
)
e = Event(name="rocket", date=dt, title=rocket_name)
events.append(e)