aboutsummaryrefslogtreecommitdiff
path: root/lnt/server/ui/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'lnt/server/ui/views.py')
-rw-r--r--lnt/server/ui/views.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lnt/server/ui/views.py b/lnt/server/ui/views.py
index cc10943..ba69ef4 100644
--- a/lnt/server/ui/views.py
+++ b/lnt/server/ui/views.py
@@ -118,6 +118,10 @@ def submit_run():
result = lnt.util.ImportData.import_and_report(
current_app.old_config, g.db_name, db, path, '<auto>', commit)
+ # It is nice to have a full URL to the run, so fixup the request URL
+ # here were we know more about the flask instance.
+ result['result_url'] = request.url_root + result['result_url']
+
return flask.jsonify(**result)
return render_template("submit_run.html")