diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2023-09-03 11:20:39 +0300 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2023-09-10 19:01:00 +0300 |
| commit | 21052a42c84852c3964a9a29694e6d2a7fe3b9e8 (patch) | |
| tree | 341c35bdc567b51f192acd8f97bd24b65d47f995 /app/utils.py | |
| parent | 3a4cd4935dafe6d445daac3b7d6ced409f99aa23 (diff) | |
Check if Aggrofile has been changed at startup, add ConcatPlugin
Diffstat (limited to 'app/utils.py')
| -rw-r--r-- | app/utils.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/utils.py b/app/utils.py index ac07bf7..d513ae9 100644 --- a/app/utils.py +++ b/app/utils.py @@ -1,5 +1,16 @@ +from app.Item import Item + + def get_param(key: str, params: dict[str, str]) -> str: if key not in params: raise Exception(f"no {key} field in config entry: " + str(params)) return params[key] + + +def item_to_dict(item: Item) -> dict[str, str]: + raise NotImplemented() + + +def dict_to_item(d: dict[str, str]) -> Item: + raise NotImplemented() |
