mirror of
https://git.mihon.tech/mihonapp/mihon
synced 2024-11-23 21:55:57 +03:00
Bump updates/history limit to 3 months (closes #2702)
This commit is contained in:
parent
8299093bf8
commit
91f7056767
2 changed files with 5 additions and 4 deletions
|
@ -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 ->
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue