Skip to content
Snippets Groups Projects
Commit 5d91ada1 authored by Kipp Cannon's avatar Kipp Cannon
Browse files

gstlal_inspiral: don't create web links for POST routes

and put a line break after each link in index.html
parent 18908e6a
No related branches found
No related tags found
No related merge requests found
......@@ -480,7 +480,10 @@ for svd_bank, output_filename, likelihood_file in zip(svd_banks, options.output,
if route.rule in ("/", "/index.html"):
# don't create links back to this page
continue
yield "<a href=\"%s%s\">%s</a>\n" % (server_address, route.rule, route.rule)
if route.method != "GET":
# only create links for GET methods
continue
yield "<a href=\"%s%s\">%s</a><br>\n" % (server_address, route.rule, route.rule)
yield "</p>\n</body></html>"
# FIXME: get service-discovery working, then don't do this
if "GSTLAL_LL_JOB" in os.environ:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment