Hal De 3 年之前
父节点
当前提交
1d34f74f3e
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/app.py

+ 2 - 1
app/app.py

@@ -320,7 +320,8 @@ async def celCallback(mngr: Manager, msg: Message):
     if (msg.EventName == 'LINKEDID_END'):
       for t in firstMessage['transfers']:
         app.logger.warning('first {}'.format(t))
-        await db.execute(query='update cdr set transfer_from=(select distinct linkedid from cdr where uniqueid=:first) where linkedid=:second;',values={'first': t[1),'second': t(2)})
+        (f,s) = t
+        await db.execute(query='update cdr set transfer_from=(select distinct linkedid from cdr where uniqueid=:first) where linkedid=:second;',values={'first': f,'second': s})
 
       app.cache['cel_calls'].pop(lid, False)
       app.cache['cel_queue_calls'].pop(lid, False)