Skip to content

Commit

Permalink
- rajout du filtre
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe Ninucci committed Dec 18, 2023
1 parent 85bb70e commit e09e5a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/kanban/exports.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ func joinCardAndKanbanDBExport(cardAndComments libwekan.CardWithComments, kanban

we.DateDebutSuivi = dateUrssaf(card.StartAt)
commentTexts := utils.Convert(comments, textFromComment)
commentTexts = utils.Filter(commentTexts, func(comment string) bool {
return strings.Contains(comment, "#export")
})

we.DescriptionWekan = strings.TrimSuffix(card.Description+"\n\n"+strings.ReplaceAll(strings.Join(commentTexts, "\n\n"), "#export", ""), "\n")

Expand Down

0 comments on commit e09e5a5

Please sign in to comment.