diff options
Diffstat (limited to 'program/management/commands/importshows.py')
-rw-r--r-- | program/management/commands/importshows.py | 6 |
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) |