X-Git-Url: https://apps.delaporte.us/gitweb/matrix-fridge-bot.git/blobdiff_plain/a11feb622890df27c35dcdc610336f306898e0fe..352468b3659be839c23529e0a341b5a026c28e0e:/matrix_fridge_bot/tasks.py?ds=sidebyside 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}')