clear cached cleaned strings when fixing description

This commit is contained in:
Allen Short 2013-06-10 16:42:40 -07:00
Родитель e17ab053fc
Коммит ff501a3304
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -98,8 +98,9 @@ class Command(BaseCommand):
except UnicodeDecodeError:
print "SKIPPED", id
self.cursor_z.execute(
'UPDATE translations as t, personas as p set t.localized_string = %s '
'where t.id = p.description and p.persona_id = %s', [desc, id])
'UPDATE translations AS t, personas AS p SET t.localized_string = %s, '
't.localized_string_clean = NULL '
'WHERE t.id = p.description AND p.persona_id = %s', [desc, id])
def count_themes(self):
self.cursor_z.execute('SELECT count(persona_id) from personas')