diff --git a/src/core/pyros_django/api/functions.py b/src/core/pyros_django/api/functions.py index ee87a61..b0050bd 100644 --- a/src/core/pyros_django/api/functions.py +++ b/src/core/pyros_django/api/functions.py @@ -8,8 +8,9 @@ def get_list_agent_cmd(agent_name): commands_recivied_by_agent = AgentCmd.get_commands_sent_to_agent(agent_name) number = 20 agent_cmds = commands_sent_by_agent | commands_recivied_by_agent - agent_cmds = agent_cmds.exclude(full_name="get_specific_cmds") - agent_cmds = agent_cmds.exclude(full_name="get_all_cmds") + agents = AgentSurvey.objects.all() + agent_cmds = agent_cmds.exclude(sender="System", full_name="get_specific_cmds") + agent_cmds = agent_cmds.exclude(sender="System", full_name="get_all_cmds") agent_cmds = agent_cmds.order_by("-s_deposit_time") agent_cmds = agent_cmds[:number] return AgentCmdSerializer(agent_cmds,many=True).data -- libgit2 0.21.2