diff options
author | André Glüpker <git@wgmd.de> | 2024-05-01 11:18:21 +0200 |
---|---|---|
committer | André Glüpker <git@wgmd.de> | 2024-05-01 11:18:21 +0200 |
commit | 389f40f305a6ab41b9636cd9fe29420600bc5c73 (patch) | |
tree | a894affc6ae3e4162c24ffb2595db09f76d10c42 | |
parent | e3c5e10b118961567a7c0b3f200b0d626cf1bbec (diff) | |
download | rss-feeds-389f40f305a6ab41b9636cd9fe29420600bc5c73.tar.gz rss-feeds-389f40f305a6ab41b9636cd9fe29420600bc5c73.tar.bz2 rss-feeds-389f40f305a6ab41b9636cd9fe29420600bc5c73.zip |
Fix date being datetime
-rwxr-xr-x | rss_types.py | 3 | ||||
-rwxr-xr-x | 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 @@ -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=[], ) |