瀏覽代碼

fix a bug

chenhaiyang 1 年之前
父節點
當前提交
39ede80c2e
共有 2 個文件被更改,包括 3 次插入7 次删除
  1. 2 2
      app/controllers/targets/temperature.py
  2. 1 5
      docker-compose.yml

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

@@ -105,7 +105,7 @@ class NewTemperatureTargetBuilder(NewTargetBuilder):
 
 class NewTempTargetBuilderV2(NewTargetBuilder):
     """
-    Calculate a new temperature target value for zhijaing.
+    Calculate a new temperature target value for zhijiang.
     """
 
     def __init__(self, actual_target: float, step_sze: float):
@@ -597,7 +597,7 @@ class TemperatureTargetControllerV3:
                 or feedback == FeedbackValue.so_cold
         ):
             step_size = SimpleStepSizeCalculator.run(feedback)
-            new_actual_target = NewTempTargetBuilderV2(self.data["current_target"], step_size)
+            new_actual_target = NewTempTargetBuilderV2(self.data["current_target"], step_size).build()
             need_run_room_control = True
             if new_actual_target != self.data["current_target"]:
                 new_global_target = SimpleGlobalTemperatureTargetBuilder(

+ 1 - 5
docker-compose.yml

@@ -2,15 +2,11 @@ version: "3"
 
 services:
   app:
-      image: registry.persagy.com/sagacloud/saga_algo_api:0.5.19
+      image: registry.persagy.com/sagacloud/saga_algo_api:0.5.20
       container_name: saga_algo_api
       ports:
         - "8002:8002"
       environment:
-        POSTGRES_SERVER: "172.18.0.1:5432"
-        POSTGRES_USER: saga
-        POSTGRES_PASSWORD: deepsaga
-        POSTGRES_DB: env_db
         PLATFORM_HOST: "http://api.sagacloud.cn/data-platform-3"
         TRANSFER_HOST: "http://api.sagacloud.cn/duoduo-service/transfer"
         CUSTOM_HOST: "http://api.sagacloud.cn/duoduo-service/custom-service"