aboutsummaryrefslogtreecommitdiffstats
path: root/app/utils.py
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2023-09-03 11:20:39 +0300
committerJan Tuomi <jans.tuomi@gmail.com>2023-09-10 19:01:00 +0300
commit21052a42c84852c3964a9a29694e6d2a7fe3b9e8 (patch)
tree341c35bdc567b51f192acd8f97bd24b65d47f995 /app/utils.py
parent3a4cd4935dafe6d445daac3b7d6ced409f99aa23 (diff)
Check if Aggrofile has been changed at startup, add ConcatPlugin
Diffstat (limited to 'app/utils.py')
-rw-r--r--app/utils.py11
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()