summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'app.py')
-rw-r--r--app.py11
1 files changed, 4 insertions, 7 deletions
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("/<LPUSER>/<PPA>/<PACKAGE>/<RELEASE>/<ARCH>")
+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/",