diff --git a/var/www/Flask_server.py b/var/www/Flask_server.py index 924c0501..db973b77 100755 --- a/var/www/Flask_server.py +++ b/var/www/Flask_server.py @@ -97,7 +97,7 @@ def search(): c.append(content[0:content_range]) paste_date.append(paste._get_p_date()) paste_size.append(paste._get_p_size()) - return render_template("search.html", r=r, c=c, paste_date=paste_date, paste_size=paste_size, char_to_display=max_preview_modal) + return render_template("search.html", r=r, c=c, query=request.form['query'], paste_date=paste_date, paste_size=paste_size, char_to_display=max_preview_modal) @app.route("/") def index(): diff --git a/var/www/templates/search.html b/var/www/templates/search.html index 451f46df..3f0c7bd4 100644 --- a/var/www/templates/search.html +++ b/var/www/templates/search.html @@ -88,7 +88,7 @@
- {{ r|length }} Results + {{ r|length }} Results for "{{ query }}"