From 7688c1a23326da1ebb37283ba0b58b05043731e5 Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Wed, 20 Apr 2022 14:11:29 -0600 Subject: [PATCH] Revert anon-view key change from #724 The "anon-view" translation key is the correct one to use for accessing anonymous view within the search results. "config-anon-view" is only for the configuration menu on the home page. --- app/routes.py | 1 - app/utils/results.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/routes.py b/app/routes.py index 378af6a..ee97ee9 100644 --- a/app/routes.py +++ b/app/routes.py @@ -464,7 +464,6 @@ def element(): try: cipher_suite = Fernet(g.session_key) src_url = cipher_suite.decrypt(element_url.encode()).decode() - print(src_url) except (InvalidSignature, InvalidToken) as e: return render_template( 'error.html', diff --git a/app/utils/results.py b/app/utils/results.py index cbc3fd1..70a3696 100644 --- a/app/utils/results.py +++ b/app/utils/results.py @@ -210,7 +210,7 @@ def append_anon_view(result: BeautifulSoup, config: Config) -> None: translation = current_app.config['TRANSLATIONS'][ config.get_localization_lang() ] - av_link.string = f'{translation["config-anon-view"]}' + av_link.string = f'{translation["anon-view"]}' av_link['class'] = 'anon-view' result.append(av_link)