Template has correct relaunch_url.

This commit is contained in:
Alok Saldanha
2021-04-03 07:08:20 -04:00
parent d2d22cecaa
commit 33331c9198
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -240,15 +240,14 @@ def do_GET_status_json():
@app.route("/relaunch/<path:path>", methods=["GET"])
def do_relaunch(path):
source_name = request.args.get("source") or default_item_source.name
source_name = request.args.get("source_name") or default_item_source.name
source = matching_source(source_name)
key = CacheKey.for_lookup(source, source.lookup(path))
match = cache.check_entry(key)
if not match is None:
match.terminate()
qs = request.query_string.decode()
return redirect(
key.view_url + (f"?{qs}" if len(qs) > 0 else ""),
key.view_url,
code=302,
)
@@ -36,7 +36,7 @@
<h4>Options</h4>
Please choose one of the following, or use the back button:
<ul>
<li><a href="{relaunch_url}">
<li><a href="{{ relaunch_url }}">
Attempt to relaunch the cellxgene server.
</a></li>
<li><a href="{{ url_for('filecrawl') }}">