From 3651c638745d7e6affb2324a0906459b884d30e7 Mon Sep 17 00:00:00 2001 From: jacr13 Date: Wed, 14 Apr 2021 23:06:40 +0200 Subject: [PATCH] remove hardcoded string from template --- app/filter.py | 3 ++- app/templates/imageresults.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/filter.py b/app/filter.py index bec9f9e..4fede8a 100644 --- a/app/filter.py +++ b/app/filter.py @@ -294,7 +294,8 @@ class Filter: soup = BeautifulSoup(render_template('imageresults.html', length=len(results), - results=results), + results=results, + view_label="View Image"), features='html.parser') # replace search input object soup.find_all('td', diff --git a/app/templates/imageresults.html b/app/templates/imageresults.html index ed4a8ee..17ee98a 100644 --- a/app/templates/imageresults.html +++ b/app/templates/imageresults.html @@ -86,7 +86,7 @@
- View image + {{ view_label }}