fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
redirect to gallery for single tags with no book results
[wolnelektury.git]
/
src
/
catalogue
/
tasks.py
diff --git
a/src/catalogue/tasks.py
b/src/catalogue/tasks.py
index
a2b8be0
..
4807339
100644
(file)
--- a/
src/catalogue/tasks.py
+++ b/
src/catalogue/tasks.py
@@
-57,3
+57,9
@@
def build_custom_pdf(book_id, customizations, file_name, waiter_id=None):
finally:
if waiter_id is not None:
WaitedFile.objects.filter(pk=waiter_id).delete()
+
+
+@task(ignore_result=True)
+def update_counters():
+ from .helpers import update_counters
+ update_counters()