summaryrefslogtreecommitdiff
path: root/program/management/commands/importhosts.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/importhosts.py
parenta5ccb836a3a281c6526a497a4426335eedbcad93 (diff)
fixed encoding problems. again.
Diffstat (limited to 'program/management/commands/importhosts.py')
-rw-r--r--program/management/commands/importhosts.py2
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()