ソースを参照

modify Jiyinjia target logic

highing666 2 年 前
コミット
4fe85355b1
2 ファイル変更2 行追加2 行削除
  1. 1 1
      app/api/routers/targets.py
  2. 1 1
      app/controllers/targets/temperature.py

+ 1 - 1
app/api/routers/targets.py

@@ -35,7 +35,7 @@ async def readjust_target(
         timestamp = get_time_str()
     try:
         if feedback != FeedbackValue.null:
-            if project_id == "Pj1101050030" or project_id == "Pj1101050039":
+            if project_id == "Pj1101050030" or project_id == "Pj1101050039" or project_id == "Pj1101140020":
                 need_run_room_control = await temperature_target_control_v1(
                     project_id, space_id, feedback
                 )

+ 1 - 1
app/controllers/targets/temperature.py

@@ -596,7 +596,7 @@ async def temperature_target_control_v2(
 async def get_target_after_feedback(
     project_id: str, space_id: str, feedback: FeedbackValue
 ) -> float:
-    if project_id == "Pj1101050030":
+    if project_id == "Pj1101050030" or project_id == "Pj1101140020" or project_id == "Pj1101050039":
         temperature_target_raw_data = await TemperatureTargetCarrier(
             project_id, space_id
         ).get_result()