diff --git a/src/pit2trello.nim b/src/pit2trello.nim index 1dadc33..a5331a5 100644 --- a/src/pit2trello.nim +++ b/src/pit2trello.nim @@ -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 -->