Fix 'anon-view' KeyError (#724)

main
glitsj16 2022-04-18 18:45:20 +00:00 committed by GitHub
parent 9317d9217f
commit ca80bb0caa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ def append_anon_view(result: BeautifulSoup, config: Config) -> None:
translation = current_app.config['TRANSLATIONS'][ translation = current_app.config['TRANSLATIONS'][
config.get_localization_lang() config.get_localization_lang()
] ]
av_link.string = f'{translation["anon-view"]}' av_link.string = f'{translation["config-anon-view"]}'
av_link['class'] = 'anon-view' av_link['class'] = 'anon-view'
result.append(av_link) result.append(av_link)