X-Git-Url: https://us-delaporte.pagekite.me/gitweb/matrix-shop-bot.git/blobdiff_plain/d3e89743c10b7d8a5d4367471995366afa8d497c..3466966ba8583c9f2e0cba3a2dfb6c6f803625e9:/matrix_shop_bot/tasks.py diff --git a/matrix_shop_bot/tasks.py b/matrix_shop_bot/tasks.py index 4b8631a..73f57e2 100644 --- a/matrix_shop_bot/tasks.py +++ b/matrix_shop_bot/tasks.py @@ -19,7 +19,13 @@ def add_store(c, name): @task -def assign(c, store_id, item_id): +def assign(c, item_id): + result = Data().assign_last_store(item_id) + print(result) + + +@task +def assign_to_store(c, item_id, store_id): result = Data().assign_store(store_id, item_id) print(result)