ai cooking
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Double include saved in mail (#392)

Removed redundant loop for filtering recent recipes.

authored by

Paul Miller and committed by
GitHub
d2cc2547 c3d4b8f3

+1 -6
+1 -6
internal/mail/mail.go
··· 177 177 p.LastRecipes = lo.FilterMap(recent, func(r utypes.Recipe, _ int) (string, bool) { 178 178 return r.Title, cooked[r.Hash] 179 179 }) 180 - for _, last := range recent { 181 - if cooked[last.Hash] { 182 - continue 183 - } 184 - p.LastRecipes = append(p.LastRecipes, last.Title) 185 - } 180 + 186 181 // can orphan recipes here with crash or shutdown. Params should have a start time 187 182 188 183 shoppingList, err = m.generator.GenerateRecipes(ctx, p)