summaryrefslogtreecommitdiffstats
path: root/themis
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2012-12-10 12:35:23 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2012-12-10 12:35:23 (GMT)
commit74c6238ae4e921ce01fe4b1b2beb5ad495d2b486 (patch)
tree83d33d782cbfafff280df4320e7f9895de93cc3a /themis
parent99480fb9fe5856e182c978ba83603d89d04a2cd4 (diff)
downloadthemis.ocrloader-74c6238ae4e921ce01fe4b1b2beb5ad495d2b486.zip
themis.ocrloader-74c6238ae4e921ce01fe4b1b2beb5ad495d2b486.tar.gz
themis.ocrloader-74c6238ae4e921ce01fe4b1b2beb5ad495d2b486.tar.bz2
also rename documents with their category/subcategory
Diffstat (limited to 'themis')
-rw-r--r--themis/ocrloader/ocrloader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/themis/ocrloader/ocrloader.py b/themis/ocrloader/ocrloader.py
index b37355d..49a8c1f 100644
--- a/themis/ocrloader/ocrloader.py
+++ b/themis/ocrloader/ocrloader.py
@@ -68,7 +68,7 @@ class LoadFromOcr(BrowserView):
int(date[0:4]), int(date[4:6]), int(date[6:]),
int(time[:2]),int(time[2:4]),int(time[4:6]))
- if doctype in ('incoming_mails', 'outgoing_mails'):
+ if (category or subcategory):
ocr_title = u'%s %s du %s à %s' % (
(category or subcategory),
number,