remove potential duplicates

This commit is contained in:
Athou
2014-08-12 16:56:18 +02:00
parent 982cf044ef
commit 3c935a0b67

View File

@@ -54,7 +54,7 @@ public class FeedDAO extends GenericDAO<Feed> {
query.where(disabledDatePredicate);
}
return query.orderBy(feed.disabledUntil.asc()).limit(count).list(feed);
return query.orderBy(feed.disabledUntil.asc()).limit(count).distinct().list(feed);
}
public Feed findByUrl(String normalizedUrl) {