Hal De 4 жил өмнө
parent
commit
3cbd364309
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      app/app.py

+ 1 - 1
app/app.py

@@ -325,7 +325,7 @@ async def unbindOtherDevices(user, newDevice, queues, ast):
   '''
   devices = await amiDBGet('AMPUSER', '{}/device'.format(user))
   if devices not in NONEs:
-    for _device in sorted(set(previousDevices.split('&')), key=int):
+    for _device in sorted(set(devices.split('&')), key=int):
       if _device != newDevice:
         if ast.FMDEVSTATE == 'TRUE':
           await amiSetVar('DEVICE_STATE(Custom:FOLLOWME{})'.format(_device), 'INVALID')