mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-14 06:22:49 +01:00
Bump updates/history limit to 3 months (closes #2702)
This commit is contained in:
parent
8299093bf8
commit
91f7056767
@ -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 ->
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user