瀏覽代碼

修复算法开关

peng 1 年之前
父節點
當前提交
36e15a3d85
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)