X-Git-Url: https://us-delaporte.pagekite.me/gitweb/matrix-fridge-bot.git/blobdiff_plain/b6fb57353edbc23f8ae2f0012c0234c9e1d86b0b..5277eab78b8b86f05f432081cd59ad8ef9aaa806:/matrix_fridge_bot/tasks.py diff --git a/matrix_fridge_bot/tasks.py b/matrix_fridge_bot/tasks.py index 74bb304..c51eca1 100644 --- a/matrix_fridge_bot/tasks.py +++ b/matrix_fridge_bot/tasks.py @@ -18,6 +18,13 @@ def add(c, task): result = DATA.add(task) print(result) +@task +def setup(c): + '''One time database setup.''' + result = DATA.setup() + print(result) + + @task def list(c): @@ -28,7 +35,7 @@ def list(c): @task -def to_toss(c): +def toss(c): result = DATA.to_toss() for item in result: print(f'{item}')