Bump updates/history limit to 3 months (closes #2702)

This commit is contained in:
arkon 2020-03-14 13:33:45 -04:00
parent 8299093bf8
commit 91f7056767
2 changed files with 5 additions and 4 deletions

View file

@ -43,9 +43,10 @@ class HistoryPresenter : BasePresenter<HistoryController>() {
*/
fun getRecentMangaObservable(): Observable<List<HistoryItem>> {
// Set date limit for recent manga
val cal = Calendar.getInstance()
cal.time = Date()
cal.add(Calendar.MONTH, -1)
val cal = Calendar.getInstance().apply {
time = Date()
add(Calendar.MONTH, -3)
}
return db.getRecentManga(cal.time).asRxObservable()
.map { recents ->

View file

@ -54,7 +54,7 @@ class UpdatesPresenter(
// Set date limit for recent chapters
val cal = Calendar.getInstance().apply {
time = Date()
add(Calendar.MONTH, -1)
add(Calendar.MONTH, -3)
}
return db.getRecentChapters(cal.time).asRxObservable()