mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-21 18:08:25 +00:00
Sort due items by their earliest due date
This commit is contained in:
@ -26,7 +26,7 @@ this is Docspell informing you about due items coming up.
|
||||
{{/more}}
|
||||
|
||||
|
||||
Sincerly,
|
||||
Sincerely yours,
|
||||
Docspell
|
||||
"""
|
||||
|
||||
|
@ -73,7 +73,8 @@ object NotifyDueItemsTask {
|
||||
states = ItemState.validStates,
|
||||
tagsInclude = ctx.args.tagsInclude,
|
||||
tagsExclude = ctx.args.tagsExclude,
|
||||
dueDateTo = Some(now + Duration.days(ctx.args.remindDays.toLong))
|
||||
dueDateTo = Some(now + Duration.days(ctx.args.remindDays.toLong)),
|
||||
orderAsc = Some(_.dueDate)
|
||||
)
|
||||
res <- ctx.store.transact(QItem.findItems(q).take(maxItems)).compile.toVector
|
||||
} yield res
|
||||
|
Reference in New Issue
Block a user