From 4a8f833e958d81c6852a8feebf234a96e6e6a25d Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sun, 22 Jan 2023 18:39:33 +0100 Subject: depend on arch and release Signed-off-by: Olivier Gayot --- app.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'app.py') diff --git a/app.py b/app.py index 87c4898..8edd181 100644 --- a/app.py +++ b/app.py @@ -64,11 +64,8 @@ def index_ppa(ppa_name): return jsonify(runs) -@app.route("/ogayot/bionic-proposed/unattended-upgrades") -def index_toto(): - RELEASE = "bionic" - LPUSER = "ogayot" - PPA = "bionic-proposed" +@app.route("/////") +def index_toto(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()) @@ -115,8 +112,8 @@ def index_toto(): return flask.render_template("browse-results.html", package="unattended-upgrades", - release="bionic", - arch="amd64", + release=RELEASE, + arch=ARCH, package_results=package_results, title_suffix="ogayot bionic-proposed unattended-upgrades", base_url="https://autopkgtest.ubuntu.com/", -- cgit v1.2.3