刘威 před 5 měsíci
rodič
revize
a73f8360ae
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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):