Compare commits

..

No commits in common. "9185052092558f9a25a287775e49192156b61ffd" and "b654e75cf5e22c05a2179f4472bfc1c415473565" have entirely different histories.

2 changed files with 8 additions and 18 deletions

View file

@ -265,20 +265,14 @@ async def get_data(now: datetime) -> typing.Mapping[str, str | object]:
events += domains.renewal_dates(my_data)
for launch in rockets:
dt = None
if launch["net_precision"] == "Day":
dt = datetime.strptime(launch["net"], "%Y-%m-%dT00:00:00Z").date()
elif launch["t0_time"]:
dt = pytz.utc.localize(
datetime.strptime(launch["net"], "%Y-%m-%dT%H:%M:%SZ")
)
if not dt:
if not launch["t0_time"]:
continue
rocket_name = f'🚀{launch["rocket"]}: {launch["mission"]["name"]}'
e = Event(name="rocket", date=dt, title=rocket_name)
dt = pytz.utc.localize(datetime.strptime(launch["net"], "%Y-%m-%dT%H:%M:%SZ"))
e = Event(
name="rocket",
date=dt,
title=f'🚀{launch["rocket"]}: {launch["mission"]["name"]}',
)
events.append(e)
events.sort(key=operator.attrgetter("as_datetime"))

View file

@ -193,11 +193,7 @@
—
{{ launch.orbit.name }} ({{ launch.orbit.abbrev }})
<br/>
{% if launch.pad_wikipedia_url %}
<a href="{{ launch.pad_wikipedia_url }}">{{ launch.pad_name }}</a>
{% else %}
{{ launch.pad_name }} {% if launch.pad_name != "Unknown Pad" %}(no Wikipedia article){% endif %}
{% endif %}
<a href="{{ launch.pad_wikipedia_url }}">{{ launch.pad_name }}</a>
&mdash; {{ launch.location }}<br/>
{% for line in launch.mission.description.splitlines() %}