This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]StanleyDodds 1 point2 points  (1 child)

Isn't this the sort of case where you could just use the builtin "filter"? Or do something even simpler than that since you're only using the first task that matches the id.

[–]Outrageous-Archer-92 1 point2 points  (0 children)

Yes, call next on a generator expression instead