1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-04 05:17:54 +03:00

Convert max_services_count_type to string for consistent data handling in services response

This commit is contained in:
Adolfo Gómez García 2024-12-23 17:32:20 +01:00
parent a4cc9fc750
commit a881509502
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -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,
}