helmet2 bug

This commit is contained in:
曹前明 2022-09-22 18:33:45 +08:00
parent a2f156926d
commit 879e91a8f9
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ myLogger = logging.getLogger('log')
algo_dict = { algo_dict = {
"helmet": "apps.ai.client.helmet", "helmet": "apps.ai.client.helmet",
"helmet2": "apps.ai.client.helmet2",
"fire1": "apps.ai.client.fire1" "fire1": "apps.ai.client.fire1"
} }

View File

@ -214,7 +214,7 @@ class TestViewSet(CustomGenericViewSet):
""" """
code = request.data['code'] code = request.data['code']
vc = TDevice.objects.get(code=code) vc = TDevice.objects.get(code=code)
snap_and_analyse(vc, ['fire1'], Opl.objects.get(id='1568880208688320512')) snap_and_analyse(vc, ['fire1', 'helmet'], Opl.objects.get(id='1572195171456651264'))
return Response() return Response()
@action(methods=['post'], detail=False, serializer_class=Serializer) @action(methods=['post'], detail=False, serializer_class=Serializer)