fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix in all works view
[wolnelektury.git]
/
src
/
catalogue
/
tasks.py
diff --git
a/src/catalogue/tasks.py
b/src/catalogue/tasks.py
index
aff0e6b
..
30bc55f
100644
(file)
--- a/
src/catalogue/tasks.py
+++ b/
src/catalogue/tasks.py
@@
-48,9
+48,9
@@
def build_custom_pdf(book_id, customizations, file_name, waiter_id=None):
kwargs = {
'cover': True,
}
kwargs = {
'cover': True,
}
- if 'no
-
cover' in customizations:
+ if 'nocover' in customizations:
kwargs['cover'] = False
kwargs['cover'] = False
- customizations.remove('no
-
cover')
+ customizations.remove('nocover')
wldoc = Book.objects.get(pk=book_id).wldocument()
pdf = wldoc.as_pdf(
customizations=customizations,
wldoc = Book.objects.get(pk=book_id).wldocument()
pdf = wldoc.as_pdf(
customizations=customizations,