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')