mirror of
https://github.com/wallabag/wallabag.git
synced 2025-10-20 19:52:09 +00:00
Fix tests
This commit is contained in:
parent
09ef25c3c3
commit
f85d220c19
2 changed files with 94 additions and 99 deletions
|
@ -464,6 +464,11 @@ class EntryRepository extends EntityRepository
|
|||
$qb->andWhere('e.isStarred = true');
|
||||
}
|
||||
|
||||
if ('untagged' === $status) {
|
||||
$qb->leftJoin('e.tags', 't');
|
||||
$qb->andWhere('t.id is null');
|
||||
}
|
||||
|
||||
return $qb->andWhere('e.id >= :rand')
|
||||
->setParameter('rand', rand(0, $max))
|
||||
->setMaxResults(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue