X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/212c71fa46809d1d2b98f529c97bf785551e0945..a8ecd9c5f7bba62b02bf9c9a75a6070eda115184:/src/catalogue/tasks.py?ds=sidebyside diff --git a/src/catalogue/tasks.py b/src/catalogue/tasks.py index aff0e6bca..30bc55fe2 100644 --- 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, } - if 'no-cover' in customizations: + if 'nocover' in customizations: kwargs['cover'] = False - customizations.remove('no-cover') + customizations.remove('nocover') wldoc = Book.objects.get(pk=book_id).wldocument() pdf = wldoc.as_pdf( customizations=customizations,