summaryrefslogtreecommitdiff
path: root/program/management/commands/importshows.py
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-03-25 22:08:27 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-03-25 22:08:27 (GMT)
commitd1bb616aae8a11afef2627cf8a8d166156a05cf7 (patch)
treeba1cb988d625725660aeab0d04ce3fa16ca47a96 /program/management/commands/importshows.py
parenta5ccb836a3a281c6526a497a4426335eedbcad93 (diff)
fixed encoding problems. again.
Diffstat (limited to 'program/management/commands/importshows.py')
-rw-r--r--program/management/commands/importshows.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/management/commands/importshows.py b/program/management/commands/importshows.py
index 9fee4ef..b013dab 100644
--- a/program/management/commands/importshows.py
+++ b/program/management/commands/importshows.py
@@ -28,14 +28,14 @@ ORDER BY titel, beginn, ende""")
counter = 0
for titel, beschreibung, web, macher in cursor.fetchall():
- titel = strip_tags(titel.decode('latin1').encode('utf8'))
- beschreibung = clean_html(beschreibung.decode('latin1').encode('utf8'))
+ titel = strip_tags(titel)
+ beschreibung = clean_html(beschreibung)
slug = slugify(titel)
hosts = []
- for macher in macher.decode('latin1').encode('utf8').split(','):
+ for macher in macher.split(','):
macher = macher.strip()
try:
host = Host.objects.get(name=macher)