|
@@ -25,7 +25,6 @@ async def readjust_target(
|
|
|
space_id: str = Query(..., max_length=50, regex="^Sp", alias="roomId"),
|
|
|
timestamp: Optional[str] = Query(None, min_length=14, max_length=14, alias="time"),
|
|
|
feedback: Optional[FeedbackValue] = Query(None, alias="itemId"),
|
|
|
- db: Session = Depends(get_db),
|
|
|
):
|
|
|
if not timestamp:
|
|
|
timestamp = get_time_str()
|
|
@@ -33,7 +32,7 @@ async def readjust_target(
|
|
|
if feedback != FeedbackValue.null:
|
|
|
if project_id == "Pj1101050030":
|
|
|
need_run_room_control = await temperature_target_control_v1(
|
|
|
- project_id, space_id, feedback, db
|
|
|
+ project_id, space_id, feedback
|
|
|
)
|
|
|
else:
|
|
|
need_run_room_control = await temperature_target_control_v2(
|