diff options
-rw-r--r-- | wqflask/wqflask/search_results.py | 1 | ||||
-rw-r--r-- | wqflask/wqflask/templates/index_page.html | 1 | ||||
-rw-r--r-- | wqflask/wqflask/views.py | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/wqflask/wqflask/search_results.py b/wqflask/wqflask/search_results.py index 63aa481e..d6432c86 100644 --- a/wqflask/wqflask/search_results.py +++ b/wqflask/wqflask/search_results.py @@ -77,6 +77,7 @@ class SearchResultPage(object): self.quick_search() else: self.results = [] + print("kw is:", kw) #self.quick_search = False self.search_terms = kw['search_terms'] self.dataset = create_dataset(kw['dataset']) diff --git a/wqflask/wqflask/templates/index_page.html b/wqflask/wqflask/templates/index_page.html index 2b298eeb..f9c5188f 100644 --- a/wqflask/wqflask/templates/index_page.html +++ b/wqflask/wqflask/templates/index_page.html @@ -30,6 +30,7 @@ <div class="page-header"> <h1>Quick search</h1> </div> + <form method="get" action="/search" name="SEARCHFORM"> <fieldset> <div class="input-prepend"> diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index ffcb0b97..53deda3b 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -92,6 +92,7 @@ def search_page(): result = pickle.loads(result) else: print("calling search_results.SearchResultPage") + print("request.args is", request.args) the_search = search_results.SearchResultPage(request.args) result = the_search.__dict__ |