mirror of
https://github.com/Novartis/cellxgene-gateway.git
synced 2026-10-08 23:18:11 +08:00
Template has correct relaunch_url.
This commit is contained in:
@@ -240,15 +240,14 @@ def do_GET_status_json():
|
|||||||
|
|
||||||
@app.route("/relaunch/<path:path>", methods=["GET"])
|
@app.route("/relaunch/<path:path>", methods=["GET"])
|
||||||
def do_relaunch(path):
|
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)
|
source = matching_source(source_name)
|
||||||
key = CacheKey.for_lookup(source, source.lookup(path))
|
key = CacheKey.for_lookup(source, source.lookup(path))
|
||||||
match = cache.check_entry(key)
|
match = cache.check_entry(key)
|
||||||
if not match is None:
|
if not match is None:
|
||||||
match.terminate()
|
match.terminate()
|
||||||
qs = request.query_string.decode()
|
|
||||||
return redirect(
|
return redirect(
|
||||||
key.view_url + (f"?{qs}" if len(qs) > 0 else ""),
|
key.view_url,
|
||||||
code=302,
|
code=302,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
<h4>Options</h4>
|
<h4>Options</h4>
|
||||||
Please choose one of the following, or use the back button:
|
Please choose one of the following, or use the back button:
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="{relaunch_url}">
|
<li><a href="{{ relaunch_url }}">
|
||||||
Attempt to relaunch the cellxgene server.
|
Attempt to relaunch the cellxgene server.
|
||||||
</a></li>
|
</a></li>
|
||||||
<li><a href="{{ url_for('filecrawl') }}">
|
<li><a href="{{ url_for('filecrawl') }}">
|
||||||
|
|||||||
Reference in New Issue
Block a user