mongodb wrapper for managing News objects

This commit is contained in:
TrisNol committed 2023-06-16 18:50:19 +02:00
1 parent 5b96bb7e3e
commit 6e31bc62bd
7 files changed
+189

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
from dataclasses import asdict, dataclass
@dataclass
class News:
id: str
title: str
date: str
text: str
source_url: str
def dict(self):
return asdict(self)
Whitespace-only changes.