diff options
-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", |