Sfoglia il codice sorgente

Set device to None when user==device in astdb

Hal De 4 anni fa
parent
commit
71ff1999d7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/app.py

+ 1 - 1
app/app.py

@@ -699,7 +699,7 @@ class UsersDevices(Resource):
     data = {}
     for user in app.cache['ustates']:
       device = await getUserDevice(user)
-      if device in NONEs:
+      if ((device in NONEs) or (device == user)):
         device = None
       data[user]=device
     return successReply(data)