Pull request #132: Do not remove images at reanalysis
Merge in RED/redaction-service from ImageReanalysisFix to master * commit 'e7c24487c755ab84c0f1efe5a0c6e9d4794d4c0f': Do not remove images at reanalysis
This commit is contained in:
commit
0e8c28f8fd
@ -248,7 +248,7 @@ public class ReanalyzeService {
|
|||||||
Iterator<RedactionLogEntry> itty = renalyzeRequest.getRedactionLog().getRedactionLogEntry().iterator();
|
Iterator<RedactionLogEntry> itty = renalyzeRequest.getRedactionLog().getRedactionLogEntry().iterator();
|
||||||
while (itty.hasNext()) {
|
while (itty.hasNext()) {
|
||||||
RedactionLogEntry entry = itty.next();
|
RedactionLogEntry entry = itty.next();
|
||||||
if (sectionsToReanaylse.contains(entry.getSectionNumber()) || entry.getSectionNumber() == 0) {
|
if (sectionsToReanaylse.contains(entry.getSectionNumber()) && !entry.getType().equals("image") || entry.getSectionNumber() == 0) {
|
||||||
itty.remove();
|
itty.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user