fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
custom pdf in dirs
[wolnelektury.git]
/
apps
/
catalogue
/
utils.py
diff --git
a/apps/catalogue/utils.py
b/apps/catalogue/utils.py
index
185f5fa
..
949ac96
100644
(file)
--- a/
apps/catalogue/utils.py
+++ b/
apps/catalogue/utils.py
@@
-140,7
+140,7
@@
class AttachmentHttpResponse(HttpResponse):
for chunk in read_chunks(f):
self.write(chunk)
-@task
+@task
(rate_limit=settings.CATALOGUE_CUSTOMPDF_RATE_LIMIT)
def async_build_pdf(book_id, customizations, file_name):
"""
A celery task to generate pdf files.