Skip to content

Commit

Permalink
Agents now get added properly to operations with no specified group
Browse files Browse the repository at this point in the history
  • Loading branch information
uruwhy committed Sep 4, 2020
1 parent 9c0f41f commit 7daa8f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/service/contact_svc.py
Original file line number Diff line number Diff line change
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 7daa8f4

Please sign in to comment.