diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2023-09-03 12:39:29 +0300 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2023-09-10 19:01:00 +0300 |
| commit | faf43ba175a747644578f4f1ce02c38e87d23d34 (patch) | |
| tree | 63b9af24e4007ae9c1beb6b6428895343650d08d /app/utils.py | |
| parent | 21052a42c84852c3964a9a29694e6d2a7fe3b9e8 (diff) | |
Fix ConcatPlugin
Diffstat (limited to 'app/utils.py')
| -rw-r--r-- | app/utils.py | 5 |
1 files changed, 3 insertions, 2 deletions
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) |
