|
@@ -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'}
|