actually add the feeds to the list

This commit is contained in:
Athou
2013-07-08 19:01:08 +02:00
parent b6b4395b91
commit bd047efcd2
2 changed files with 12 additions and 4 deletions

View File

@@ -156,7 +156,14 @@ public class FeedDAO extends GenericDAO<Feed> {
for (String hash : normalizedUrlHashes) {
FeedCount fc = new FeedCount();
fc.normalizedUrlHash = hash;
fc.feeds = findByField(Feed_.normalizedUrlHash, hash);
fc.feeds = Lists.newArrayList();
for (Feed feed : findByField(Feed_.normalizedUrlHash, hash)) {
Feed f = new Feed();
f.setId(feed.getId());
f.setUrl(feed.getUrl());
fc.feeds.add(f);
}
result.add(fc);
}
return result;
}