Browse Source

算法小店列表增加关于字段

zhangdongming 2 years ago
parent
commit
4ab72c24e9
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Controller/AlgorithmShop/AlgorithmShopController.py

+ 3 - 2
Controller/AlgorithmShop/AlgorithmShopController.py

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