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/importhosts.py | |
parent | a5ccb836a3a281c6526a497a4426335eedbcad93 (diff) |
fixed encoding problems. again.
Diffstat (limited to 'program/management/commands/importhosts.py')
-rw-r--r-- | program/management/commands/importhosts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/management/commands/importhosts.py b/program/management/commands/importhosts.py index dcdf4be..39a8afd 100644 --- a/program/management/commands/importhosts.py +++ b/program/management/commands/importhosts.py @@ -22,7 +22,7 @@ WHERE letzter_termin > current_date AND macher != '' AND titel NOT LIKE 'Musikpr counter = 0 for row in cursor.fetchall(): - for macher in row[0].decode('latin1').encode('utf8').split(','): + for macher in row[0].split(','): host = Host(name=macher.strip()) host.save() |