Don't consider a chores executed when the execution was undone

This commit is contained in:
Bernd Bestel 2019-07-07 19:47:05 +02:00
parent 6e3407b157
commit 430286ae9e
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -24,4 +24,5 @@ SELECT
FROM chores h FROM chores h
LEFT JOIN chores_log l LEFT JOIN chores_log l
ON h.id = l.chore_id ON h.id = l.chore_id
AND l.undone = 0
GROUP BY h.id, h.period_days; GROUP BY h.id, h.period_days;