diff options
-rw-r--r-- | app.py | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -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/", |