upgrade existing languages profiles to include the `audio_only_include` attribute and prevent exception from being raised

pull/2861/head
morpheus65535 3 weeks ago
parent 308c3cf44a
commit d03d94e78a

@ -531,6 +531,9 @@ def upgrade_languages_profile_hi_values():
language['hi'] = "True"
elif language['hi'] in ["also", "never"]:
language['hi'] = "False"
if 'audio_only_include' not in language:
language['audio_only_include'] = "False"
database.execute(
update(TableLanguagesProfiles)
.values({"items": json.dumps(items)})

Loading…
Cancel
Save