From e206d27f632cb6d7f1e701152391118b229599ea Mon Sep 17 00:00:00 2001 From: Mokaddem Date: Thu, 7 Jul 2016 16:43:18 +0200 Subject: [PATCH] Added query search display --- var/www/Flask_server.py | 2 +- var/www/templates/search.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }}"