Compare commits

..

3 commits

Author SHA1 Message Date
Edward Betts f0c28d2440 Download domain info from gandi 2024-03-30 19:32:05 +00:00
Edward Betts 748ec3a1bc pass gandi domain end date as date 2024-03-30 19:31:48 +00:00
Edward Betts d813bff812 dockbot is optional 2024-03-30 19:31:29 +00:00
3 changed files with 8 additions and 3 deletions

View file

@ -39,7 +39,6 @@ from . import (
)
from .types import Event, StrDict, Trip
here = dateutil.tz.tzlocal()
# deadline to file tax return
@ -267,7 +266,11 @@ def busy_event(e: Event) -> bool:
return False
lc_title = e.title.lower()
return "rebels" not in lc_title and "south west data social" not in lc_title
return (
"rebels" not in lc_title
and "south west data social" not in lc_title
and "dorkbot" not in lc_title
)
async def time_function(

View file

@ -2,6 +2,7 @@
import os
from .types import Event
from datetime import datetime
import json
@ -18,7 +19,7 @@ def get_events(data_dir: str) -> list[Event]:
return [
Event(
date=item["dates"]["registry_ends_at"],
date=datetime.fromisoformat(item["dates"]["registry_ends_at"]).date(),
name="domain",
title=item["fqdn"] + " renewal",
)

View file

@ -131,6 +131,7 @@ def main() -> None:
asyncio.run(update_bank_holidays())
asyncio.run(update_bristol_bins())
update_gwr_advance_ticket_date()
update_gandi()
update_thespacedevs()