diff options
Diffstat (limited to 'program/management/commands/importprogramslots.py')
-rw-r--r-- | program/management/commands/importprogramslots.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/management/commands/importprogramslots.py b/program/management/commands/importprogramslots.py index 8739bbb..52aa73a 100644 --- a/program/management/commands/importprogramslots.py +++ b/program/management/commands/importprogramslots.py @@ -32,7 +32,7 @@ WHERE letzter_termin > current_date AND titel NOT LIKE 'Musikprogramm' AND titel counter = 0 for titel, beginn, ende, erster_termin, letzter_termin, rhytmus, termin in cursor.fetchall(): - titel = strip_tags(titel.decode('latin1').encode('utf8')) + titel = strip_tags(titel) hours, seconds = divmod(beginn.seconds, 3600) minutes, seconds = divmod(seconds, 60) @@ -64,7 +64,7 @@ FROM sendungen WHERE letzter_termin > current_date AND titel LIKE '%%(Wiederholung)'""") for titel, beginn, ende, erster_termin, letzter_termin, rhytmus, termin in cursor.fetchall(): - titel = titel.decode('latin1').encode('utf8')[:-15] + titel = strip_tags(titel[:-15]) hours, seconds = divmod(beginn.seconds, 3600) minutes, seconds = divmod(seconds, 60) |