Parcourir la source

Merge branch 'dev' into test

Ansjer il y a 3 ans
Parent
commit
7a434f7fd6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      Controller/DetectControllerV2.py

+ 1 - 1
Controller/DetectControllerV2.py

@@ -346,7 +346,7 @@ class DetectControllerViewV2(View):
             eventTime = p['eventTime']
             channel = p['Channel']
             storage_location = p['storage_location']
-            p['borderCoords'] = json.loads(p['borderCoords'])
+            p['borderCoords'] = '' if p['borderCoords'] =='' else json.loads(p['borderCoords'])
             if p['is_st'] == 1:
                 thumbspng = '{uid}/{channel}/{time}.jpeg'.format(uid=devUid, channel=p['Channel'], time=eventTime)
                 if storage_location == 1:   # oss