From cdcbab386a8c6428ba346b41a4155e92f04b1e16 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sun, 22 Jan 2023 18:41:02 +0100 Subject: now the endpoint looks good Signed-off-by: Olivier Gayot --- app.py | 6 +++--- 1 file 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("/////") -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/", ) -- cgit v1.2.3