RED-1477: Fixed duplicate images

This commit is contained in:
Dominique Eifländer 2021-05-12 11:28:17 +02:00
parent e281ab98fa
commit bdf40f5e4e

View File

@ -237,8 +237,7 @@ public class ReanalyzeService {
}
redactionLog.getRedactionLogEntry()
.removeIf(entry -> sectionsToReanalyse.contains(entry.getSectionNumber()) && !entry.isImage() || entry.getSectionNumber() == 0 && !entry
.isImage());
.removeIf(entry -> sectionsToReanalyse.contains(entry.getSectionNumber()));
redactionLog.getRedactionLogEntry().addAll(newRedactionLogEntries);
return finalizeAnalysis(analyzeRequest, startTime, redactionLog, text, dictionaryIncrement);