From 14278daa1477ee03e4d73b81576b87310ad92ca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Tue, 12 Nov 2024 18:18:40 +0100 Subject: [PATCH] Convert policy and ha_policy to string representation in MetaPools response to allow compat with choices --- server/src/uds/REST/methods/meta_pools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/uds/REST/methods/meta_pools.py b/server/src/uds/REST/methods/meta_pools.py index 0c76e1e1d..9229d08ef 100644 --- a/server/src/uds/REST/methods/meta_pools.py +++ b/server/src/uds/REST/methods/meta_pools.py @@ -145,12 +145,12 @@ class MetaPools(ModelHandler): 'user_services_count': userservices_total, 'user_services_in_preparation': userservices_in_preparation, 'visible': item.visible, - 'policy': item.policy, + 'policy': str(item.policy), 'fallbackAccess': item.fallbackAccess, 'permission': permissions.effective_permissions(self._user, item), 'calendar_message': item.calendar_message, 'transport_grouping': item.transport_grouping, - 'ha_policy': item.ha_policy, + 'ha_policy': str(item.ha_policy), } return val