Skip to content

Commit

Permalink
Merge pull request #1852 from mitre/agent-contact-fix
Browse files Browse the repository at this point in the history
Agents now get added properly to operations with no specified group
  • Loading branch information
wbooth committed Sep 25, 2020
2 parents 36c6b93 + 7daa8f4 commit d5e46d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/service/contact_svc.py
Expand Up @@ -138,5 +138,5 @@ async def _add_agent_to_operation(self, agent):
which the planner needs to be aware of.
"""
for op in await self.get_service('data_svc').locate('operations', match=dict(finish=None)):
if op.group == agent.group or op.group is None:
if op.group == agent.group or not op.group:
await op.update_operation(self.get_services())

0 comments on commit d5e46d3

Please sign in to comment.