mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2026-02-13 22:17:38 +01:00
mongodb wrapper for managing News objects
This commit is contained in:
1 parent
5b96bb7e3e
commit
6e31bc62bd
7 files changed
+189
No files matched your search
@@ -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.
Reference in new issue
Block a user