code cleanup, presentation on data extraction

This commit is contained in:
TrisNol
2023-06-19 18:02:34 +02:00
parent 6e31bc62bd
commit c9c7b0cf7a
6 changed files with 469 additions and 589 deletions

File diff suppressed because one or more lines are too long

View File

@ -49,7 +49,6 @@ class MongoEntryTransformer:
@staticmethod
def transform_ingoing(news: News) -> dict:
transport_object = news.dict()
print(transport_object)
transport_object["_id"] = news.id
del transport_object["id"]
return transport_object