Browse Source

delete custom feedback for testing

chenhaiyang 4 years ago
parent
commit
544a71477b
1 changed files with 0 additions and 17 deletions
  1. 0 17
      app/api/routers/targets.py

+ 0 - 17
app/api/routers/targets.py

@@ -34,20 +34,3 @@ async def readjust_target(
         'time': wechat_timestamp,
     }
     return response
-
-
-@router.get('/readjust/test/{project_id}/{space_id}', tags=['targets'])
-async def test_readjust(project_id: str, space_id: str, wechat_time: str = Depends(get_time_str)):
-    feedback = {
-        'a little cold': 0,
-        'so cold': 0,
-        'a little hot': 0,
-        'so hot': 0,
-        'noisy or blowy': 1,
-        'so stuffy': 0,
-        'switch off': 0,
-        'switch on': 0,
-    }
-    await readjust_all_target(project_id, space_id, wechat_time, feedback)
-
-    return {'Message': 'Running background'}