功能变化: 过滤系统初始化配置优化

pull/71/head
李强 2022-08-21 15:56:16 +08:00
parent 408c89c7d3
commit bf6bc71b95
1 changed files with 3 additions and 2 deletions

View File

@ -256,10 +256,11 @@ class InitSettingsViewSet(APIView):
:param data:
:return:
"""
new_data = {}
for key in self.request.query_params.get('key', '').split('|'):
if key:
data = dict(filter(lambda x: x[0].startswith(key), data.items()))
return data
new_data.update(**dict(filter(lambda x: x[0].startswith(key), data.items())))
return new_data
def get(self, request):
data = dispatch.get_system_config()