X-Git-Url: https://apps.delaporte.us/gitweb/matrix-shop-bot.git/blobdiff_plain/f636eed1859db9f987dd7a0badaee48bb051237f..895434f80adf39e2122f592c09a8ade36209a8a7:/matrix_shop_bot/tasks.py diff --git a/matrix_shop_bot/tasks.py b/matrix_shop_bot/tasks.py index a60a2a1..54cafd1 100644 --- a/matrix_shop_bot/tasks.py +++ b/matrix_shop_bot/tasks.py @@ -39,7 +39,9 @@ def clear_list(c, store_id): @task -def list(c, store_id): +def list(c, store_id_str=None): + + store_id = int(store_id_str) if store_id_str else None items = Data().get_shopping_list(store_id) for item in items: print(item)