From c3be88afca4919286bd7bbab14327aa6bdf1cd99 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 10 Jan 2023 17:25:10 +0100 Subject: [PATCH] Use new /latestjob endpoint for latest app job link --- app/models/appci.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/appci.py b/app/models/appci.py index e74def0..87df1c7 100644 --- a/app/models/appci.py +++ b/app/models/appci.py @@ -24,14 +24,14 @@ class AppCIBranch(db.Model): branch="stable", display_name='Stable (x86)', url='https://ci-apps.yunohost.org/ci/logs/list_level_stable_amd64.json', - url_per_app='https://ci-apps.yunohost.org/ci/apps/{}/') + url_per_app='https://ci-apps.yunohost.org/ci/apps/{}/latestjob') yield AppCIBranch(name='unstable', arch="amd64", branch="unstable", display_name='Unstable (x86)', url='https://ci-apps-unstable.yunohost.org/ci/logs/list_level_unstable_amd64.json', - url_per_app='https://ci-apps-unstable.yunohost.org/ci/apps/{}/') + url_per_app='https://ci-apps-unstable.yunohost.org/ci/apps/{}/latestjob') def last_build_url(self, app): return self.url_per_app.format(app.name)