mirror of
https://github.com/Novartis/cellxgene-gateway.git
synced 2026-09-27 06:38:12 +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"])
|
||||
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') }}">
|
||||
|
||||
Reference in New Issue
Block a user