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