|
@@ -131,7 +131,7 @@ class AlgorithmShopManageView(View):
|
|
|
)
|
|
|
device_algorithm_explain_qs = DeviceAlgorithmExplain.objects.filter(
|
|
|
algorithm_type_id=device_algorithm_type.id)
|
|
|
- translation_no = device_algorithm_explain_qs.count()
|
|
|
+ translation_num = device_algorithm_explain_qs.count()
|
|
|
device_algorithm_explain = device_algorithm_explain_qs.filter(lang="cn").first()
|
|
|
device_algorithm_type_list.append({
|
|
|
"algorithmId": device_algorithm_type.id,
|
|
@@ -149,7 +149,7 @@ class AlgorithmShopManageView(View):
|
|
|
"iconUrl": device_algorithm_type.icon_url,
|
|
|
"resource": device_algorithm_type.resource,
|
|
|
"deviceAlgorithmExplain": device_algorithm_explain_list,
|
|
|
- "translationNo": translation_no
|
|
|
+ "translationNum": translation_num
|
|
|
})
|
|
|
return response.json(0, device_algorithm_type_list)
|
|
|
except Exception as e:
|
|
@@ -165,7 +165,7 @@ class AlgorithmShopManageView(View):
|
|
|
sort = request_dict.get('sort', 0)
|
|
|
basic_function = request_dict.get('basicFunction', '')
|
|
|
resource = request_dict.get('resource', None)
|
|
|
- lang_configs = request_dict.get('langConfig', None)
|
|
|
+ lang_configs = request_dict.get('langExplainConfig', None)
|
|
|
image_file = request.FILES.get('imageFile', None)
|
|
|
details_img_file = request.FILES.get('detailsImgFile', None)
|
|
|
icon_file = request.FILES.get('iconFile', None)
|
|
@@ -260,7 +260,7 @@ class AlgorithmShopManageView(View):
|
|
|
sort = request_dict.get('sort', 0)
|
|
|
basic_function = request_dict.get('basicFunctions', '')
|
|
|
resource = request_dict.get('resource', None)
|
|
|
- lang_configs = request_dict.get('langConfig', None)
|
|
|
+ lang_configs = request_dict.get('langExplainConfig', None)
|
|
|
image_file = request.FILES.get('imageFile', None)
|
|
|
details_img_file = request.FILES.get('detailsImgFile', None)
|
|
|
icon_file = request.FILES.get('iconFile', None)
|