Ignore issues completed more than 60 days in the past to allow archiving old Trello lists.

This commit is contained in:
Jonathan Bernard 2023-12-15 22:10:17 -06:00
parent 2080be5537
commit c6adf92564

View File

@ -102,8 +102,10 @@ proc syncContext(
let board = s.boards[ctx.boardId]
let issues = s.issues.find(
propsFilter(newTable([("context", ctx.context)])))
var issueFilter = initFilter()
issueFilter.completedRange = some((now() - 60.days, now()))
issueFilter.properties = newTable([("context", ctx.context)])
let issues = s.issues.find(issueFilter)
let cards: seq[tuple[list: TrelloListSummary, card: TrelloCard]] =
board.lists.pairs.toSeq -->