Explorar o código

Fix device cache renew

Hal De %!s(int64=4) %!d(string=hai) anos
pai
achega
607910f648
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      app/app.py

+ 2 - 1
app/app.py

@@ -557,7 +557,8 @@ async def refreshStatesCache():
   return len(app.cache['ustates'])
 
 async def refreshDevicesCache():
-  aors = await amiPJSIPShowAors()
+  _reply = await amiPJSIPShowAors()
+  aors = _reply['data']
   app.cache['devices'] = list(aors.keys())
   return len(app.cache['devices'])