diff options
author | Munyoki Kilyungi | 2023-11-03 18:05:58 +0300 |
---|---|---|
committer | BonfaceKilz | 2023-11-27 12:32:27 +0300 |
commit | 6ec2fbdbec4b6152014151a9a2af15a5be7e11e1 (patch) | |
tree | 47e2184829c59c43137499506def99c19e475201 /wqflask | |
parent | e1a1350b44a78e10df593d107692d64a80b4f619 (diff) | |
download | genenetwork2-6ec2fbdbec4b6152014151a9a2af15a5be7e11e1.tar.gz |
Point htmx to the correct endpoint for dataset search.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/templates/dataset.html | 2 | ||||
-rw-r--r-- | wqflask/wqflask/views.py | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/wqflask/wqflask/templates/dataset.html b/wqflask/wqflask/templates/dataset.html index f47cfca2..dc87ac15 100644 --- a/wqflask/wqflask/templates/dataset.html +++ b/wqflask/wqflask/templates/dataset.html @@ -78,7 +78,7 @@ <!-- Actual search box --> <div class="search"> <form class="form-group has-feedback has-search" - hx-post="/dataset/search" + hx-post="/datasets/search" hx-target="#search-results"> <span class="glyphicon glyphicon-search form-control-feedback"></span> <input class="form-control" diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index 3827a938..d6fc64e1 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -1111,9 +1111,8 @@ def get_dataset(name): dataset=metadata ) -@app.route("/dataset/search", methods=('POST',)) +@app.route("/datasets/search", methods=('POST',)) def search_for_dataset(): - results = {} search = request.form.get('search') return render_template( "metadata/dataset_search_results.html", |