diff options
author | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-03-25 22:08:27 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-03-25 22:08:27 (GMT) |
commit | d1bb616aae8a11afef2627cf8a8d166156a05cf7 (patch) | |
tree | ba1cb988d625725660aeab0d04ce3fa16ca47a96 /program/management/commands/importprogramslots.py | |
parent | a5ccb836a3a281c6526a497a4426335eedbcad93 (diff) |
fixed encoding problems. again.
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) |