fix import_raw.py

This commit is contained in:
j 2016-11-06 14:41:38 +01:00
parent 314e465588
commit 9bccfd22f4

View file

@ -64,7 +64,7 @@ def import_raw(client):
for path in client.path(oshash): for path in client.path(oshash):
if os.path.exists(path): if os.path.exists(path):
jpg = os.path.join(cache, u'%s.jpg' % os.path.basename(path).split('.')[0]) jpg = os.path.join(cache, u'%s.jpg' % os.path.basename(path).split('.')[0])
convert_cr2(path, jpg) convert_raw(path, jpg)
break break
if jpg and os.path.exists(jpg): if jpg and os.path.exists(jpg):
r = client._add_document(jpg, f['item']) r = client._add_document(jpg, f['item'])