From af50da49361dbe1a10958cdf534961fc3ca3594f Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Tue, 16 Jun 2020 09:34:46 +0200 Subject: [PATCH] Add compress flag for ocr jobs --- daemon/tasks/check_jobs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon/tasks/check_jobs.py b/daemon/tasks/check_jobs.py index e779bbff..758ab892 100644 --- a/daemon/tasks/check_jobs.py +++ b/daemon/tasks/check_jobs.py @@ -74,6 +74,9 @@ def __create_job_service(job): + ' {}'.format(job.secure_filename if job.service == 'file-setup' else '') + + ' {}'.format('--compress' + if job.service == 'ocr' + else '') + ' --log-dir /files' + ' --zip [{}]_{}'.format(job.service, job.secure_filename)