X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..26cfb5089c251551ba002f1e90b39fc0c474afd2:/src/catalogue/tasks.py diff --git a/src/catalogue/tasks.py b/src/catalogue/tasks.py index a2b8be088..4807339ba 100644 --- 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()