From a0dd2fa5609f8fdd0e22137db2f63f055f8883d3 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Fri, 9 Feb 2024 08:57:33 +0100 Subject: [PATCH] [FIX] runbot: fix search limit --- runbot/controllers/frontend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/controllers/frontend.py b/runbot/controllers/frontend.py index 6aece6d1..516f8f7d 100644 --- a/runbot/controllers/frontend.py +++ b/runbot/controllers/frontend.py @@ -159,7 +159,7 @@ class Runbot(Controller): case when "runbot_bundle".sticky then "runbot_bundle".version_number end collate "C" desc, "runbot_bundle".last_batch desc """ - query.limit = min(limit, 200) + query.limit = min(int(limit), 200) bundles = env['runbot.bundle'].browse(query) category_id = int(request.httprequest.cookies.get('category') or 0) or request.env['ir.model.data']._xmlid_to_res_id('runbot.default_category')