From b35c6edb9f0bec01ef91d190d86e836a0937f0b7 Mon Sep 17 00:00:00 2001 From: Mathieu ROUDAUT Date: Tue, 2 Jan 2024 11:06:45 +0100 Subject: [PATCH] fix: use javascript number type --- .../config/generic/site.json | 16 +++++++++------- .../gn_module_monitoring/config/repositories.py | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/backend/gn_module_monitoring/config/generic/site.json b/backend/gn_module_monitoring/config/generic/site.json index da4956690..9171b09d2 100644 --- a/backend/gn_module_monitoring/config/generic/site.json +++ b/backend/gn_module_monitoring/config/generic/site.json @@ -27,7 +27,10 @@ "nb_visits" ], "sorts": [ - {"prop": "last_visit", "dir": "desc"} + { + "prop": "last_visit", + "dir": "desc" + } ], "generic": { "id_base_site": { @@ -54,7 +57,6 @@ "type_widget": "textarea", "attribut_label": "Description" }, - "id_sites_group": { "type_widget": "datalist", "attribut_label": "Groupe de sites", @@ -115,12 +117,12 @@ "schema_dot_table": "gn_monitoring.t_base_sites" }, "altitude_min": { - "type_widget": "integer", + "type_widget": "number", "attribut_label": "Altitude (min)" - }, - "altitude_max": { - "type_widget": "integer", + }, + "altitude_max": { + "type_widget": "number", "attribut_label": "Altitude (max)" - } + } } } diff --git a/backend/gn_module_monitoring/config/repositories.py b/backend/gn_module_monitoring/config/repositories.py index f196ebede..ffd9330f3 100644 --- a/backend/gn_module_monitoring/config/repositories.py +++ b/backend/gn_module_monitoring/config/repositories.py @@ -213,7 +213,7 @@ def config_schema(module_code, object_type, type_schema="all"): { "attribut_name": "id_base_site", "Label": "Id du site", - "type_widget": "integer", + "type_widget": "text", "required": "true", }