From 69d161c19be460d97389921f7e45130f4e2fba8c Mon Sep 17 00:00:00 2001 From: pierre geeraert Date: Fri, 27 Mar 2026 00:18:58 +0000 Subject: [PATCH] finding how to target the good one --- django_code/cloudmanager/db_interaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_code/cloudmanager/db_interaction.py b/django_code/cloudmanager/db_interaction.py index 9ddd1b9..3b42e2c 100644 --- a/django_code/cloudmanager/db_interaction.py +++ b/django_code/cloudmanager/db_interaction.py @@ -57,7 +57,7 @@ def Check_server_supposed_XXX(generated_db_in,wanted_status,Wanted_hour,Wanted_d if wanted_status == "up": sql_in = "select machine.namespace, machine.name, machine.replicas from scenario_hour,machine ,scenario_day_of_week where state_at_" + str(Wanted_hour) + "='1' and state_" + str(Wanted_day) + "='1' and machine.hour_behaviour_id=scenario_hour.id_scenario and machine.day_behaviour_id=scenario_day_of_week.id_scenario;" elif wanted_status == "down": - sql_in = "select machine.namespace, machine.name, machine.replicas from scenario_hour,machine ,scenario_day_of_week where state_at_" + str(Wanted_hour) + "='0' or state_" + str(Wanted_day) + "='0' and machine.hour_behaviour_id=scenario_hour.id_scenario and machine.day_behaviour_id=scenario_day_of_week.id_scenario;" + sql_in = "select machine.namespace, machine.name, machine.replicas from scenario_hour,machine ,scenario_day_of_week where not(state_at_" + str(Wanted_hour) + "='1' and state_" + str(Wanted_day) + "='1') and machine.hour_behaviour_id=scenario_hour.id_scenario and machine.day_behaviour_id=scenario_day_of_week.id_scenario;" else: print("error value") print(sql_in)