From e819be903f2d262b5951d607335468721a73f441 Mon Sep 17 00:00:00 2001 From: "ederson.brilhante" Date: Thu, 1 Feb 2018 15:36:06 -0200 Subject: [PATCH] Fixed deploy of flows in controllers --- networkapi/api_environment/facade.py | 2 +- scripts/docker/docker-start-debug.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/networkapi/api_environment/facade.py b/networkapi/api_environment/facade.py index 2d11af95f..6738bc2eb 100644 --- a/networkapi/api_environment/facade.py +++ b/networkapi/api_environment/facade.py @@ -162,7 +162,7 @@ def delete_environment(env_ids): def get_controller_by_envid(env_id): q_filter_environment = { - 'equipmentcontrollerenvironment': env_id + 'equipmentcontrollerenvironment__environment': env_id } return Equipamento.objects.filter(Q(**q_filter_environment)) diff --git a/scripts/docker/docker-start-debug.sh b/scripts/docker/docker-start-debug.sh index 300b236e9..2e73f86eb 100755 --- a/scripts/docker/docker-start-debug.sh +++ b/scripts/docker/docker-start-debug.sh @@ -10,8 +10,8 @@ pip install -r requirements.txt pip install -r requirements_test.txt pip install -r requirements_debug.txt -export NETWORKAPI_DEBUG=0 -export NETWORKAPI_LOG_QUEUE=1 +export NETWORKAPI_DEBUG=1 +export NETWORKAPI_LOG_QUEUE=0 export DJANGO_SETTINGS_MODULE='networkapi.settings_ipdb' echo "starting runserver 0.0.0.0:8001 --ipdb"