@task
def list_bought(c, store):
result = Data().list_purchases(store)
- print(result)
-
+ for item in result:
+ print(str(item))
@task
def clear_all(c, store_id):
@task
-def list_for_store(c, store_id):
- items = Data().get_shopping_list_for_store(store_id)
+def at(c, store_name):
+ '''Select store to shop at'''
+ items = Data().get_shopping_list(store_name)
for item in items:
print(item)
-
@task
def list(c):
'''Use previous store'''