]> us-delaporte.pagekite.me Git - matrix-shop-bot.git/blobdiff - matrix_shop_bot/tasks.py
Print shopping list by zone
[matrix-shop-bot.git] / matrix_shop_bot / tasks.py
index 515649b623f60bd1774cd01b652229b0e51768c6..07ffb40363262d6f66a1544f639c2fc5c6e76b67 100644 (file)
@@ -33,6 +33,10 @@ def assign_to_store(c, item_id, store_id):
     result = Data().assign_store(store_id, item_id)
     print(result)
 
     result = Data().assign_store(store_id, item_id)
     print(result)
 
+@task
+def assign_to_zone(c, item, zone):
+    result = Data().assign_zone(item, zone)
+    print(result)
 
 @task
 def buy(c, items):
 
 @task
 def buy(c, items):