migrations: Remove an unnecessary list.

This commit is contained in:
Alex Vandiver 2022-01-11 15:58:37 -08:00
parent ce09c8b65f
commit 3e90a5cdc0

View File

@ -43,7 +43,7 @@ def fix_topics(apps: StateApps, schema_editor: DatabaseSchemaEditor) -> None:
topics = [r[0] for r in results]
for topic in topics:
fixed_topic = "".join(
[character for character in topic if character_is_printable(character)]
character for character in topic if character_is_printable(character)
)
if fixed_topic == topic:
continue