X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/7c1d66f69659152dbf468bcf2df8208655ff82c9..031b8be3bf03baa724dd7e225b0555726d089341:/src/stats/tasks.py diff --git a/src/stats/tasks.py b/src/stats/tasks.py index 7c9dc9666..b62f3e9c2 100644 --- a/src/stats/tasks.py +++ b/src/stats/tasks.py @@ -1,7 +1,7 @@ # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # -from celery.task import task +from celery import shared_task from django.conf import settings import logging from urllib.parse import urlsplit @@ -21,6 +21,6 @@ except AttributeError: _host = None -@task(ignore_result=True) +@shared_task(ignore_result=True) def track_request(piwik_args): - urlopen("https:%s%s%s" % (settings.PIWIK_URL, "piwik.php?", piwik_args)) + urlopen("%s%s%s" % (settings.PIWIK_URL, "piwik.php?", piwik_args))