From e3a64b6c1dbbad2e9e2e1ab4bc731333aecf79a7 Mon Sep 17 00:00:00 2001 From: Marc Rufener Date: Thu, 2 Mar 2023 15:37:08 +0100 Subject: [PATCH] bugfix --- back/infolica/views/numero.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/infolica/views/numero.py b/back/infolica/views/numero.py index 728077d7..e78cd09c 100644 --- a/back/infolica/views/numero.py +++ b/back/infolica/views/numero.py @@ -641,7 +641,7 @@ def _getNumberId(request, numero, cadastre_id): Numero.cadastre_id == cadastre_id, Numero.numero == numero ).first() - return (numero.id, numero.type_id) if numero is not None else None + return (numero.id, numero.type_id) if numero is not None else (None, None) def _getCadastre(request, cadastre_id):