pass gandi domain end date as date
This commit is contained in:
parent
d813bff812
commit
748ec3a1bc
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from .types import Event
|
from .types import Event
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
@ -18,7 +19,7 @@ def get_events(data_dir: str) -> list[Event]:
|
||||||
|
|
||||||
return [
|
return [
|
||||||
Event(
|
Event(
|
||||||
date=item["dates"]["registry_ends_at"],
|
date=datetime.fromisoformat(item["dates"]["registry_ends_at"]).date(),
|
||||||
name="domain",
|
name="domain",
|
||||||
title=item["fqdn"] + " renewal",
|
title=item["fqdn"] + " renewal",
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue