From 04f22644422e7f8ee5326569ae2d0f212903cabd Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 6 Dec 2021 12:21:35 +0000 Subject: pipeline: process jpg or png regardless of whether in wipe or preprocess queue --- cmd/rescribe/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/rescribe/main.go b/cmd/rescribe/main.go index da38c96..59d8166 100644 --- a/cmd/rescribe/main.go +++ b/cmd/rescribe/main.go @@ -550,8 +550,8 @@ func downloadbook(dir string, name string, conn Pipeliner) error { } func processbook(training string, tesscmd string, conn Pipeliner) error { - origPattern := regexp.MustCompile(`[0-9]{4}.jpg$`) - wipePattern := regexp.MustCompile(`[0-9]{4,6}(.bin)?.png$`) + origPattern := regexp.MustCompile(`[0-9]{4}.(jpg|png)$`) + wipePattern := regexp.MustCompile(`[0-9]{4,6}(.bin)?.(jpg|png)$`) ocredPattern := regexp.MustCompile(`.hocr$`) var checkPreQueue <-chan time.Time -- cgit v1.2.1-24-ge1ad