浏览代码

Type fixed

Hal De 4 年之前
父节点
当前提交
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')