summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-04-18 13:16:13 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-04-18 13:16:13 (GMT)
commit778861bcfeff28b891ee5ee8fd7020ea40226186 (patch)
tree57a255bd5f52fb360d419f7318d8dd0f98e300e3
parent44d84f11cee921e5acb36546d1a6a4f8783fe826 (diff)
downloadpfwbged.ocrloader-778861bcfeff28b891ee5ee8fd7020ea40226186.zip
pfwbged.ocrloader-778861bcfeff28b891ee5ee8fd7020ea40226186.tar.gz
pfwbged.ocrloader-778861bcfeff28b891ee5ee8fd7020ea40226186.tar.bz2
add seconds to titles
-rwxr-xr-xocrloader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ocrloader.py b/ocrloader.py
index debdf4d..6606f7e 100755
--- a/ocrloader.py
+++ b/ocrloader.py
@@ -75,7 +75,7 @@ def process(cfg, filename, payload, enable_ocr=True):
now = datetime.datetime.now()
title = string.Template(cfg.get('title')).substitute(
{'date': now.strftime('%d/%m/%Y'),
- 'time': now.strftime('%H:%M')})
+ 'time': now.strftime('%H:%M:%S')})
t = subprocess.call(['curl', '-v', '--insecure', '-X', 'POST',
'-F', 'form.widgets.file=@%s;filename=%s;type=application/pdf' % (ocr_filename, filename),
'-F', 'form.buttons.import=Import',