mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
remove error predicate for metric
This commit is contained in:
@@ -49,10 +49,7 @@ public class FeedDAO extends GenericDAO<Feed> {
|
||||
Root<Feed> root = query.from(getType());
|
||||
|
||||
query.select(builder.count(root));
|
||||
|
||||
List<Predicate> preds = getUpdatablePredicates(root);
|
||||
preds.add(builder.lessThanOrEqualTo(root.get(Feed_.errorCount), 10));
|
||||
query.where(preds.toArray(new Predicate[0]));
|
||||
query.where(getUpdatablePredicates(root).toArray(new Predicate[0]));
|
||||
|
||||
TypedQuery<Long> q = em.createQuery(query);
|
||||
return q.getSingleResult();
|
||||
|
||||
Reference in New Issue
Block a user