From d813bff812d90bf697f12e0dbba2bd78e451fed3 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sat, 30 Mar 2024 19:31:29 +0000 Subject: [PATCH 1/3] dockbot is optional --- agenda/data.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/agenda/data.py b/agenda/data.py index d9efcef..21a3d16 100644 --- a/agenda/data.py +++ b/agenda/data.py @@ -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( From 748ec3a1bc3f467c1629b1563f35304c8bc5aaa8 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sat, 30 Mar 2024 19:31:48 +0000 Subject: [PATCH 2/3] pass gandi domain end date as date --- agenda/gandi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agenda/gandi.py b/agenda/gandi.py index b5e60e1..d833472 100644 --- a/agenda/gandi.py +++ b/agenda/gandi.py @@ -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", ) From f0c28d24408d78b1b9e1512e6bd5fa31d3e4f8e4 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sat, 30 Mar 2024 19:32:05 +0000 Subject: [PATCH 3/3] Download domain info from gandi --- update.py | 1 + 1 file changed, 1 insertion(+) diff --git a/update.py b/update.py index 75d75d6..24c0976 100755 --- a/update.py +++ b/update.py @@ -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()