From 7dfcec5756930f5281288508b45c3fa1a63b4cfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 31 May 2018 07:13:17 +0200 Subject: [PATCH] add possibility to specify recipients of notifications --- ocrloader.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ocrloader.py b/ocrloader.py index 1738da1..1fff8a7 100755 --- a/ocrloader.py +++ b/ocrloader.py @@ -86,6 +86,7 @@ def process(cfg, filename, payload, enable_ocr=True): cfg.get('treating_groups') or cfg.get('treating_groups') or ''), '-F', 'form.widgets.recipient_groups=%s' % (cfg.get('recipient_groups') or ''), '-F', 'form.widgets.title=%s' % title, + '-F', 'form.widgets.notification_recipients=%s' % cfg.get('notification_recipients', ''), '-F', 'form.widgets.keywords=%s' % cfg.get('keywords', ''), '-u', '%s:%s' % (cfg.get('ged_username'), cfg.get('ged_password')), '%s/@@fileimport' % cfg.get('ged_base_url'),])