summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-10-07 22:53:55 +0100
committerNick White <git@njw.name>2019-10-07 22:53:55 +0100
commitd43c11bf653bfe3c1ad1ed277f1ec08bf155cf98 (patch)
treecf260ee77542dda928f4db0c0ca7e570e0b71e5a
parenta78b620220945ce15ab9965701ab5e7d39f314f1 (diff)
Ensure wipe pipeline uses the expected png files
-rw-r--r--bookpipeline/cmd/bookpipeline/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/bookpipeline/cmd/bookpipeline/main.go b/bookpipeline/cmd/bookpipeline/main.go
index 7d04e3a..59ece72 100644
--- a/bookpipeline/cmd/bookpipeline/main.go
+++ b/bookpipeline/cmd/bookpipeline/main.go
@@ -386,6 +386,7 @@ func main() {
}
origPattern := regexp.MustCompile(`[0-9]{4}.jpg$`) // TODO: match alternative file naming
+ wipePattern := regexp.MustCompile(`[0-9]{4}.png$`)
preprocessedPattern := regexp.MustCompile(`_bin[0-9].[0-9].png$`)
ocredPattern := regexp.MustCompile(`.hocr$`)
@@ -446,7 +447,7 @@ func main() {
continue
}
verboselog.Println("Message received on wipeonly queue, processing", msg.Body)
- err = processBook(msg, conn, wipe, origPattern, conn.WipeQueueId(), conn.OCRQueueId())
+ err = processBook(msg, conn, wipe, wipePattern, conn.WipeQueueId(), conn.OCRQueueId())
if err != nil {
log.Println("Error during wipe", err)
}