Browse Source

cancle filtering Pj1101080259 in room/control and equip/control

chenhaiyang 4 years ago
parent
commit
64218d679a
2 changed files with 1 additions and 7 deletions
  1. 0 2
      app/api/routers/equipment.py
  2. 1 5
      app/api/routers/space.py

+ 0 - 2
app/api/routers/equipment.py

@@ -57,8 +57,6 @@ async def get_equipment_command_test(
 async def get_equipment_command(equipment_control_info: EquipmentControlRequest, db: Session = Depends(get_db)):
     if equipment_control_info.equipType == EquipmentName.FCU:
         output = await get_fcu_control_result(equipment_control_info.projectId, equipment_control_info.equipId)
-        if equipment_control_info.projectId == 'Pj1101080259':
-            output = {}
     elif equipment_control_info.equipType == EquipmentName.VAV:
         vav = await get_vav_control_v2(db, equipment_control_info.projectId, equipment_control_info.equipId)
         output = {

+ 1 - 5
app/api/routers/space.py

@@ -22,14 +22,10 @@ async def get_space_command(
         timestamp: str = Query(None, min_length=14, max_length=14, alias='time'),
         method: int = Query(3),
 ):
-    if project_id == 'Pj1101080259':
-        flag = 0
-    else:
-        flag = 1
     response = {
         'projectId': project_id,
         'roomId': space_id,
-        'flag': flag,
+        'flag': 1,
         'time': timestamp,
         'method': method,
     }