forked from shaba/openuds
Fixing up status checking
This commit is contained in:
parent
83a407d350
commit
2834120b35
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user