From a8aed014dbbfed67ef56fdda6219e7f17922f383 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Mon, 11 Sep 2023 09:51:05 +0300 Subject: Improvements all around --- app/Item.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'app/Item.py') diff --git a/app/Item.py b/app/Item.py index 7376301..a7af6ce 100644 --- a/app/Item.py +++ b/app/Item.py @@ -11,6 +11,14 @@ class ItemEnclosure: url: str +@dataclass +class ItemGUID: + """RSS Item GUID object""" + + value: str + is_perma_link: bool = False + + @dataclass class Item: """RSS Item""" @@ -23,4 +31,4 @@ class Item: category: str | None comments: str | None enclosures: list[ItemEnclosure] - guid: str + guid: ItemGUID -- cgit v1.3