Skip to content

Commit

Permalink
Merge pull request #1165 from Bidaya0/feat/new-agent-event-and-servic…
Browse files Browse the repository at this point in the history
…e-addr-display-fix-2

feat/new-agent-event-and-service-addr-display-fix-2
  • Loading branch information
Bidaya0 authored Dec 15, 2022
2 parents 5fb8838 + becf494 commit 9fae76b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dongtai_protocol/views/except_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def actual_running_status(self, request):
) or agent.actual_running_status != actual_running_status:
if not agent.events:
agent.append_events("注册成功")
if agent.actual_running_status in EVENT_MAPPING:
agent.append_events(EVENT_MAPPING[agent.actual_running_status])
if actual_running_status in EVENT_MAPPING:
agent.append_events(EVENT_MAPPING[actual_running_status])
agent.actual_running_status = actual_running_status
agent.state_status = state_status
agent.save()
Expand Down

0 comments on commit 9fae76b

Please sign in to comment.