]> apps.delaporte.us Git - matrix-shop-bot.git/blobdiff - matrix_shop_bot/tasks.py
Fixes for last store
[matrix-shop-bot.git] / matrix_shop_bot / tasks.py
index 4b8631a6a88820d936098588ea0b191a9f556cf8..73f57e253566a2bb8c0d30b44dd11b7784475272 100644 (file)
@@ -19,7 +19,13 @@ def add_store(c, name):
 
 
 @task
 
 
 @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)
 
     result = Data().assign_store(store_id, item_id)
     print(result)