summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2023-01-22 18:41:02 +0100
committerOlivier Gayot <olivier.gayot@sigexec.com>2023-01-22 18:41:02 +0100
commitcdcbab386a8c6428ba346b41a4155e92f04b1e16 (patch)
tree938d3e221358412d444b12ac1cd874faa23af112
parent4a8f833e958d81c6852a8feebf234a96e6e6a25d (diff)
now the endpoint looks good
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
-rw-r--r--app.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/app.py b/app.py
index 8edd181..f18f0b0 100644
--- a/app.py
+++ b/app.py
@@ -65,7 +65,7 @@ def index_ppa(ppa_name):
return jsonify(runs)
@app.route("/<LPUSER>/<PPA>/<PACKAGE>/<RELEASE>/<ARCH>")
-def index_toto(LPUSER, PPA, PACKAGE, RELEASE, ARCH):
+def index_results(LPUSER, PPA, PACKAGE, RELEASE, ARCH):
autopkgtest_url_base = f"https://autopkgtest.ubuntu.com/results/autopkgtest-{RELEASE}-{LPUSER}-{PPA}"
data = json.loads(urlopen(f"{autopkgtest_url_base}?format=json").read())
@@ -111,10 +111,10 @@ def index_toto(LPUSER, PPA, PACKAGE, RELEASE, ARCH):
return flask.render_template("browse-results.html",
- package="unattended-upgrades",
+ package=PACKAGE,
release=RELEASE,
arch=ARCH,
package_results=package_results,
- title_suffix="ogayot bionic-proposed unattended-upgrades",
+ title_suffix=f"{LPUSER} {PPA} {PACKAGE}",
base_url="https://autopkgtest.ubuntu.com/",
)