diff options
| author | Olivier Gayot <olivier.gayot@sigexec.com> | 2023-01-22 18:39:33 +0100 | 
|---|---|---|
| committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2023-01-22 18:39:33 +0100 | 
| commit | 4a8f833e958d81c6852a8feebf234a96e6e6a25d (patch) | |
| tree | 3c20e094b6fd7ac80336a14ecee2ac2d9c33cb7a | |
| parent | c5036e54aba6a2a7ddf9d6e5afe6603e6b37f6a5 (diff) | |
depend on arch and release
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
| -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/", | 
