Browse Source

add acatfc to path

highing666 3 years ago
parent
commit
c23e5aab8e
1 changed files with 3 additions and 5 deletions
  1. 3 5
      app/api/routers/devices.py

+ 3 - 5
app/api/routers/devices.py

@@ -1,5 +1,4 @@
 from fastapi import APIRouter, BackgroundTasks, Depends, Query
-from loguru import logger
 from sqlalchemy.orm import Session
 
 from app.api.dependencies.db import get_db
@@ -7,12 +6,11 @@ from app.controllers.equipment.ahu.supply_air_temperature_set import get_next_su
 from app.controllers.equipment.ahu.thermal_mode import get_thermal_mode
 from app.controllers.equipment.fcu.early_start import get_recommended_early_start_time
 from app.controllers.equipment.fcu.on_ratio import start_on_ratio_mode
-from app.controllers.equipment.pau.switch import get_switch_action
-from app.controllers.equipment.pau.supply_air_temperature_set import get_next_acatfu_supply_air_temperature_set
 from app.controllers.equipment.pau.freq_set import get_next_acatfu_freq_set
+from app.controllers.equipment.pau.supply_air_temperature_set import get_next_acatfu_supply_air_temperature_set
+from app.controllers.equipment.pau.switch import get_switch_action
 from app.models.domain.devices import DevicesInstructionsBaseResponse, DevicesEarlyStartTime
 
-
 router = APIRouter()
 
 
@@ -106,7 +104,7 @@ async def get_acatfu_freq_set(
     }
 
 
-@router.get('/early-start/prediction', response_model=DevicesEarlyStartTime)
+@router.get('/early-start/prediction/acatfc', response_model=DevicesEarlyStartTime)
 async def get_acatfc_early_start_time(
         project_id: str = Query(..., max_length=50, regex='^Pj', alias='projectId'),
         space_id: str = Query(..., max_length=50, regex='^Sp', alias='spaceId'),