Ignore issues completed more than 60 days in the past to allow archiving old Trello lists.
This commit is contained in:
parent
2080be5537
commit
c6adf92564
@ -102,8 +102,10 @@ proc syncContext(
|
|||||||
|
|
||||||
let board = s.boards[ctx.boardId]
|
let board = s.boards[ctx.boardId]
|
||||||
|
|
||||||
let issues = s.issues.find(
|
var issueFilter = initFilter()
|
||||||
propsFilter(newTable([("context", ctx.context)])))
|
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]] =
|
let cards: seq[tuple[list: TrelloListSummary, card: TrelloCard]] =
|
||||||
board.lists.pairs.toSeq -->
|
board.lists.pairs.toSeq -->
|
||||||
|
Loading…
Reference in New Issue
Block a user