Browse Source

Type fixed

Hal De 4 năm trước cách đây
mục cha
commit
3cbd364309
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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')