From b85d4b8872ada2b20f4c13b094e679c2ba26b01f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 3 Jun 2019 15:33:05 +0200 Subject: [PATCH] Search line by id using integer value Since issue7085, it is no more allowed to use record instance in place of integer. issue8367 review283371002 --- routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes.py b/routes.py index 7276eaf187..87e83369e8 100644 --- a/routes.py +++ b/routes.py @@ -112,7 +112,7 @@ def timesheet(request, pool, line=None): if not line: line, = Line.create([data]) else: - lines = Line.search([('id', '=', line)]) + lines = Line.search([('id', '=', int(line))]) if not lines: return Response(None, 204) line, = lines