# 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 django.conf import settings
# 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 django.conf import settings
- piwik_url = "%s%s%s" % (settings.PIWIK_URL, u"/piwik.php?", piwik_args)
- conn = HTTPConnection(_host)
- conn.request('GET', piwik_url)
- conn.close()
+ urlopen("https:%s%s%s" % (settings.PIWIK_URL, "piwik.php?", piwik_args))