From 3a4fa494f84b3d5f09d3cca1976bb67ff1e4740a Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 12 Feb 2024 10:18:25 +0100 Subject: [PATCH] [FIX] runbot_merge: incorrectly named endpoint Method has the same name as its preceding sibling, so it overwrites it and one of the endpoints is not accessible. --- runbot_merge/controllers/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot_merge/controllers/__init__.py b/runbot_merge/controllers/__init__.py index 5d42abe5..535591f1 100644 --- a/runbot_merge/controllers/__init__.py +++ b/runbot_merge/controllers/__init__.py @@ -40,7 +40,7 @@ class MergebotController(Controller): ] @route('/runbot_merge/stagings//', auth='none', type='json') - def prs_for_staging(self, from_staging, to_staging, include_from=True, include_to=True): + def prs_for_stagings(self, from_staging, to_staging, include_from=True, include_to=True): Stagings = request.env(user=1, context={"active_test": False})['runbot_merge.stagings'] from_staging = Stagings.browse(from_staging) to_staging = Stagings.browse(to_staging)