Merge branch 'reflow'
[wolnelektury.git] / apps / catalogue / tasks.py
diff --git a/apps/catalogue/tasks.py b/apps/catalogue/tasks.py
deleted file mode 100755 (executable)
index 5566fe1..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-# -*- coding: utf-8 -*-
-# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
-# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
-#
-from datetime import datetime
-from celery.task import task
-
-
-@task
-def touch_tag(tag):
-    update_dict = {
-        'book_count': tag.get_count(),
-        'changed_at': datetime.now(),
-    }
-
-    type(tag).objects.filter(pk=tag.pk).update(**update_dict)