if match.command('add'):
new = ' '.join(match.args()[1:])
result = Data().add_item(new)
- return [f'Item added with id {result}']
+ results = [f'Item added with id {result}']
+ for item in Data().get_last_shopping_list():
+ results.append(str(item))
+ return results
if match.command('add-store'):
new = ' '.join(match.args()[1:])