|
@@ -439,7 +439,7 @@ class AlgorithmShopView(View):
|
|
|
now_time = int(time.time())
|
|
|
uid_algorithm_qs = DeviceUidAlgorithmType.objects.filter(algorithm_type_id=type_id, device_uid=uid)
|
|
|
if not uid_algorithm_qs.exists():
|
|
|
- param = {'algorithm_type_id': int(type_id), 'uid': uid, 'function': setting_json,
|
|
|
+ param = {'algorithm_type_id': int(type_id), 'device_uid': uid, 'function': setting_json,
|
|
|
'status': status, 'updated_time': now_time, 'created_time': now_time}
|
|
|
DeviceUidAlgorithmType.objects.create(**param)
|
|
|
return response.json(0)
|