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