diff options
author | Zachary Sloan | 2013-06-13 23:04:38 +0000 |
---|---|---|
committer | Zachary Sloan | 2013-06-13 23:04:38 +0000 |
commit | 392272095baf02496405031d488e32ef68b0f85f (patch) | |
tree | 07b63cdc83fd198fe449ae52b32cf27ad79e66ac | |
parent | 78998b9400bba9ecc9fdd5e50eef1405bb3625c1 (diff) | |
download | genenetwork2-392272095baf02496405031d488e32ef68b0f85f.tar.gz |
Made a few changes while trying to figure out why the search isn't working
post-merging with Sam's code
-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__ |