mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-06-22 14:33:55 +02:00
mongodb wrapper for managing News objects
This commit is contained in:
13
Jupyter/API-tests/News/models/News.py
Normal file
13
Jupyter/API-tests/News/models/News.py
Normal 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)
|
Reference in New Issue
Block a user