peng 1 жил өмнө
parent
commit
36e15a3d85

+ 1 - 1
Controller/AlgorithmShop/AlgorithmShopController.py

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