From faf43ba175a747644578f4f1ce02c38e87d23d34 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sun, 3 Sep 2023 12:39:29 +0300 Subject: Fix ConcatPlugin --- app/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/utils.py') diff --git a/app/utils.py b/app/utils.py index d513ae9..824d370 100644 --- a/app/utils.py +++ b/app/utils.py @@ -1,4 +1,5 @@ from app.Item import Item +from dataclasses import asdict def get_param(key: str, params: dict[str, str]) -> str: @@ -9,8 +10,8 @@ def get_param(key: str, params: dict[str, str]) -> str: def item_to_dict(item: Item) -> dict[str, str]: - raise NotImplemented() + return asdict(item) def dict_to_item(d: dict[str, str]) -> Item: - raise NotImplemented() + return Item(**d) -- cgit v1.3