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>> { fun getRecentMangaObservable(): Observable<List<HistoryItem>> {
// Set date limit for recent manga // Set date limit for recent manga
val cal = Calendar.getInstance() val cal = Calendar.getInstance().apply {
cal.time = Date() time = Date()
cal.add(Calendar.MONTH, -1) add(Calendar.MONTH, -3)
}
return db.getRecentManga(cal.time).asRxObservable() return db.getRecentManga(cal.time).asRxObservable()
.map { recents -> .map { recents ->

View File

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