Show only recent chapters of the library

This commit is contained in:
inorichi 2016-01-18 20:18:46 +01:00
parent f0a3c9c2dc
commit dda0c50a1c

View File

@ -25,7 +25,9 @@ public class MangaChapterGetResolver extends DefaultGetResolver<MangaChapter> {
ChapterTable.COLUMN_MANGA_ID); ChapterTable.COLUMN_MANGA_ID);
public static final String RECENT_CHAPTERS_QUERY = String.format( public static final String RECENT_CHAPTERS_QUERY = String.format(
QUERY + " ORDER BY %1$s DESC LIMIT 100", ChapterTable.COLUMN_DATE_UPLOAD); QUERY + " WHERE %1$s = 1 ORDER BY %2$s DESC LIMIT 100",
MangaTable.COLUMN_FAVORITE,
ChapterTable.COLUMN_DATE_UPLOAD);
@NonNull @NonNull
private final MangaStorIOSQLiteGetResolver mangaGetResolver; private final MangaStorIOSQLiteGetResolver mangaGetResolver;