From 3c1f4a8c95d29c22db59234cfbabd4b70a55de6e Mon Sep 17 00:00:00 2001 From: j Date: Wed, 15 Jun 2016 17:55:57 +0200 Subject: [PATCH] dont call module --- pandora/item/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/item/tasks.py b/pandora/item/tasks.py index 00a175e9..614a17c1 100644 --- a/pandora/item/tasks.py +++ b/pandora/item/tasks.py @@ -4,7 +4,6 @@ import os from datetime import timedelta, datetime import gzip import random -random from django.conf import settings from django.db import connection, transaction @@ -15,6 +14,7 @@ from celery.task import task, periodic_task import models from text.models import Text + @periodic_task(run_every=timedelta(days=1), queue='encoding') def cronjob(**kwargs): update_random_sort() @@ -107,7 +107,7 @@ def update_sitemap(base_url): urlset.attrib['xmlns'] = "http://www.sitemaps.org/schemas/sitemap/0.9" urlset.attrib['xmlns:xsi'] = "http://www.w3.org/2001/XMLSchema-instance" urlset.attrib['xsi:schemaLocation'] = "http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" - urlset.attrib['xmlns:video']= "http://www.google.com/schemas/sitemap-video/1.1" + urlset.attrib['xmlns:video'] = "http://www.google.com/schemas/sitemap-video/1.1" url = ET.SubElement(urlset, "url") loc = ET.SubElement(url, "loc")