Merge remote-tracking branch 'origin/dev' into dev
[wolnelektury.git] / src / catalogue / tasks.py
index a2b8be0..4807339 100644 (file)
@@ -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()
     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()