刘威 há 5 meses atrás
pai
commit
a73f8360ae
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/core/callcenter/agent.py

+ 1 - 1
src/core/callcenter/agent.py

@@ -279,7 +279,7 @@ class AgentMonitorService:
             data.heart_state = agent_monitor.heart_state
             data.heart_time = agent_monitor.heart_time.timestamp() if agent_monitor.heart_time else None
             data.update_time = agent_monitor.update_time.timestamp() if agent_monitor.update_time else None
-            res.append(data)
+            res.append(data.__dict__)
         return res
 
     def update_checkin(self, agent_monitor):