From a8815095024915b63b65704ca14870bd42c0d885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Mon, 23 Dec 2024 17:32:20 +0100 Subject: [PATCH] Convert max_services_count_type to string for consistent data handling in services response --- server/src/uds/REST/methods/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/uds/REST/methods/services.py b/server/src/uds/REST/methods/services.py index 3ddbeec39..4b1b5649c 100644 --- a/server/src/uds/REST/methods/services.py +++ b/server/src/uds/REST/methods/services.py @@ -104,7 +104,7 @@ class Services(DetailHandler): # pylint: disable=too-many-public-methods 'user_services_count': models.UserService.objects.filter(deployed_service__service=item) .exclude(state__in=State.INFO_STATES) .count(), - 'max_services_count_type': item.max_services_count_type, + 'max_services_count_type': str(item.max_services_count_type), 'maintenance_mode': item.provider.maintenance_mode, 'permission': perm, }