parent
e1540d9bfe
commit
c94e98acb1
3 changed files with 32 additions and 19 deletions
|
|
@ -30,6 +30,8 @@ def build_events(events: list[Event]) -> list[dict[str, typing.Any]]:
|
|||
one_day = timedelta(days=1)
|
||||
|
||||
for e in events:
|
||||
if e.name == "today":
|
||||
continue
|
||||
if e.name == "accommodation":
|
||||
assert e.title and e.end_date
|
||||
item = {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ from datetime import date, datetime, timedelta
|
|||
import dateutil.rrule
|
||||
import dateutil.tz
|
||||
import holidays # type: ignore
|
||||
import isodate
|
||||
import isodate # type: ignore
|
||||
import lxml
|
||||
import pytz
|
||||
import yaml
|
||||
|
|
@ -265,6 +265,7 @@ async def get_data(now: datetime) -> typing.Mapping[str, str | object]:
|
|||
events += hn.whoishiring(last_year, next_year)
|
||||
|
||||
events += domains.renewal_dates(my_data)
|
||||
events += [Event(name="today", date=today)]
|
||||
|
||||
for launch in rockets:
|
||||
dt = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue