X-Git-Url: https://apps.delaporte.us/gitweb/matrix-shop-bot.git/blobdiff_plain/dc9596331e7950ed257dd0e0ccffd36590ab8cc0..19bec36c1b5f7bcf005ca9b842dd902a32675ce0:/matrix_shop_bot/tasks.py diff --git a/matrix_shop_bot/tasks.py b/matrix_shop_bot/tasks.py index a60a2a1..4b8631a 100644 --- a/matrix_shop_bot/tasks.py +++ b/matrix_shop_bot/tasks.py @@ -39,8 +39,16 @@ def clear_list(c, store_id): @task -def list(c, store_id): - items = Data().get_shopping_list(store_id) +def list_for_store(c, store_id): + items = Data().get_shopping_list_for_store(store_id) + for item in items: + print(item) + + +@task +def list(c): + '''Use previous store''' + items = Data().get_last_shopping_list() for item in items: print(item)