Fixing up status checking

This commit is contained in:
Adolfo Gómez García 2021-06-23 17:53:13 +02:00
parent 83a407d350
commit 2834120b35
2 changed files with 25 additions and 19 deletions

View File

@ -400,6 +400,8 @@ def enableService(request: 'ExtendedHttpRequestWithUser', idService: str, idTran
userService, trans = res[1], res[3]
userService.setProperty('accesedByClient', '0') # Reset accesed property to
typeTrans = trans.getType()
error = '' # No error

View File

@ -156,6 +156,10 @@ def userServiceStatus(
'''
ip: typing.Union[str, None, bool]
userService = None
status = 'error'
# If service exists
if userServiceManager().locateUserService(user=request.user, idService=idService, create=False):
# Service exists...
try:
(
ip,