summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Glüpker <git@wgmd.de>2024-05-01 11:18:21 +0200
committerAndré Glüpker <git@wgmd.de>2024-05-01 11:18:21 +0200
commit389f40f305a6ab41b9636cd9fe29420600bc5c73 (patch)
treea894affc6ae3e4162c24ffb2595db09f76d10c42
parente3c5e10b118961567a7c0b3f200b0d626cf1bbec (diff)
downloadrss-feeds-389f40f305a6ab41b9636cd9fe29420600bc5c73.tar.gz
rss-feeds-389f40f305a6ab41b9636cd9fe29420600bc5c73.tar.bz2
rss-feeds-389f40f305a6ab41b9636cd9fe29420600bc5c73.zip
Fix date being datetime
-rwxr-xr-xrss_types.py3
-rwxr-xr-xzdf.py2
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=[],
)