From 1e4b85310f0abd427bbe6069b9fbabc41ca87279 Mon Sep 17 00:00:00 2001 From: TheGeekTortoise Date: Fri, 12 Nov 2021 10:34:49 +0100 Subject: [PATCH] fix duplicate in annotation export --- grails-app/services/be/cytomine/utils/ReportService.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grails-app/services/be/cytomine/utils/ReportService.groovy b/grails-app/services/be/cytomine/utils/ReportService.groovy index 5949eec48..2a32a0147 100644 --- a/grails-app/services/be/cytomine/utils/ReportService.groovy +++ b/grails-app/services/be/cytomine/utils/ReportService.groovy @@ -175,6 +175,8 @@ class ReportService { } } + exportResult = exportResult.unique {a -> a.id} + termNameUsed.unique() userNameUsed.unique() List fields = ["id", "area", "perimeter", "XCentroid", "YCentroid", "image", "filename", "user", "term", "cropURL", "cropGOTO"]