|
@@ -76,7 +76,7 @@ class AlgorithmShopView(View):
|
|
|
.values('algorithm_type__id', 'algorithm_type__type',
|
|
|
'algorithm_type__icon_url',
|
|
|
'title', 'subtitle', 'algorithm_type__image_url',
|
|
|
- 'algorithm_type__basic_function')
|
|
|
+ 'algorithm_type__basic_function', 'concerning')
|
|
|
algorithm_list = []
|
|
|
if not algorithm_qs.exists():
|
|
|
return response.json(0, algorithm_list)
|
|
@@ -93,7 +93,8 @@ class AlgorithmShopView(View):
|
|
|
'title': item['title'],
|
|
|
'subtitle': item['subtitle'],
|
|
|
'setting': setting,
|
|
|
- 'basicFunction': item['algorithm_type__basic_function']
|
|
|
+ 'basicFunction': item['algorithm_type__basic_function'],
|
|
|
+ 'concerning': item['concerning']
|
|
|
})
|
|
|
return response.json(0, algorithm_list)
|
|
|
except Exception as e:
|
|
@@ -119,7 +120,7 @@ class AlgorithmShopView(View):
|
|
|
'algorithm_type__icon_url',
|
|
|
'title', 'subtitle', 'introduction',
|
|
|
'install_explain', 'risk_warning',
|
|
|
- 'algorithm_type__basic_function')
|
|
|
+ 'algorithm_type__basic_function', 'concerning')
|
|
|
if not explain_qs.exists():
|
|
|
return response.json(0, {})
|
|
|
item = explain_qs.first()
|
|
@@ -135,6 +136,7 @@ class AlgorithmShopView(View):
|
|
|
'installExplain': item['install_explain'],
|
|
|
'riskWarning': item['risk_warning'],
|
|
|
'basicFunction': item['algorithm_type__basic_function'],
|
|
|
+ 'concerning': item['concerning']
|
|
|
}
|
|
|
dt_info_qs = DeviceTypeAlgorithmInfo.objects.filter(algorithm_type=algorithm_dict['type']) \
|
|
|
.annotate(deviceName=F('device_name'), deviceType=F('device_type'),
|