Skip to content

Commit

Permalink
donst export checked items
Browse files Browse the repository at this point in the history
  • Loading branch information
vabene1111 committed Oct 21, 2020
1 parent 89b8dbe commit e427d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbook/templates/shopping_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ <h2>{% trans 'Shopping List' %}</h2>
},
export_text() {
let text = ''
for (let e of this.display_entries) {
for (let e of this.display_entries.filter(item => item.checked === false)) {
text += `${this.export_text_prefix}${e.amount} ${e.unit.name} ${e.food.name} \n`
}
return text
Expand Down

0 comments on commit e427d8b

Please sign in to comment.