Fetch additional content if some is missing

This commit is contained in:
Phillip Thelen 2016-01-19 15:23:53 +01:00
parent c4b6cc87e7
commit f7dd168b8a

View file

@ -73,11 +73,9 @@ public class ContentCache {
Where<ItemData> query = new Select().from(ItemData.class).where(keyCondition);
String queryString = query.getQuery();
List<ItemData> items = query.queryList();
if (items != null && items.size() != 0) {
if (items != null && items.size() == keysToSearch.size()) {
gotEntries.GotObject(items);
} else {
getContentAndSearchForList("item", keysToSearch, gotEntries);