summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ocrloader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ocrloader.py b/ocrloader.py
index af239ac..fd669d1 100644
--- a/ocrloader.py
+++ b/ocrloader.py
@@ -66,7 +66,7 @@ def process(cfg, filename, payload, enable_ocr=True):
'-F', 'form.widgets.owner=%s' % cfg.get('user'),
'-F', 'form.widgets.treating_group=%s' % cfg.get('treating_group'),
'-F', 'form.widgets.title=%s' % title,
- '-u', 'admin:admin',
+ '-u', '%s:%s' % (cfg.get('get_username'), cfg.get('get_password')),
'%s/@@fileimport' % cfg.get('ged_base_url'),]
return (t == 0)