X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..8ac06f56a164a1860e6c33ac7fd65167d9714cb1:/src/catalogue/tasks.py?ds=sidebyside 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()