Only send overdue notifications for unarchived cards

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2017-12-07 18:28:51 +01:00 коммит произвёл Julius Härtl
Родитель 02724fd4eb
Коммит 7c552e9a52
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -125,7 +125,7 @@ class CardMapper extends DeckMapper implements IPermissionMapper {
}
public function findOverdue() {
$sql = 'SELECT id,title,duedate,notified from `*PREFIX*deck_cards` WHERE duedate < NOW()';
$sql = 'SELECT id,title,duedate,notified from `*PREFIX*deck_cards` WHERE duedate < NOW() AND NOT archived';
return $this->findEntities($sql);
}