Browse Source

修复算法开关

peng 1 year ago
parent
commit
36e15a3d85
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Controller/AlgorithmShop/AlgorithmShopController.py

+ 1 - 1
Controller/AlgorithmShop/AlgorithmShopController.py

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