fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usunięcie nieużywanych już paneli.
[redakcja.git]
/
apps
/
api
/
management
/
commands
/
doc_upload.py
diff --git
a/apps/api/management/commands/doc_upload.py
b/apps/api/management/commands/doc_upload.py
index
66ef924
..
414c474
100644
(file)
--- a/
apps/api/management/commands/doc_upload.py
+++ b/
apps/api/management/commands/doc_upload.py
@@
-32,11
+32,12
@@
class Command(BaseCommand):
bookname = args[1]
print "Uploading '%s' as document '%s'" % (filename, bookname)
bookname = args[1]
print "Uploading '%s' as document '%s'" % (filename, bookname)
- print "Wth DC template" if options['dc'] else ""
+ print options['dc']
+ print "With DC template" if options['dc'] is not None else ""
print client.post( reverse("document_list_view"),\
{
'bookname': bookname,
'ocr_file': open(filename),
print client.post( reverse("document_list_view"),\
{
'bookname': bookname,
'ocr_file': open(filename),
- 'generate_dc': options['dc'] } )
+ 'generate_dc': options['dc']
or False
} )