[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.
This commit is contained in:
Xavier Morel 2024-02-12 10:18:25 +01:00
parent 95393afde8
commit 3a4fa494f8

View File

@ -40,7 +40,7 @@ class MergebotController(Controller):
]
@route('/runbot_merge/stagings/<int:from_staging>/<int:to_staging>', 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)