From 389f40f305a6ab41b9636cd9fe29420600bc5c73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Wed, 1 May 2024 11:18:21 +0200 Subject: Fix date being datetime --- rss_types.py | 3 ++- zdf.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rss_types.py b/rss_types.py index 4217b29..b27cbc5 100755 --- a/rss_types.py +++ b/rss_types.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 from dataclasses import dataclass +from datetime import datetime @dataclass @@ -8,7 +9,7 @@ class RSSItem: title: str url: str content: str - date: str + date: datetime enclosures: list[str] guid: str diff --git a/zdf.py b/zdf.py index b81278d..40a30d6 100755 --- a/zdf.py +++ b/zdf.py @@ -70,7 +70,7 @@ def zdf(show_url): title=s_title, url=s_url, content=s_desc, - date=s_date, + date=s_date_parsed, guid=s_guid, enclosures=[], ) -- cgit v1.2.3