ソースを参照

device=user fix

Hal De 4 年 前
コミット
c01482d8f0
1 ファイル変更2 行追加0 行削除
  1. 2 0
      app/app.py

+ 2 - 0
app/app.py

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