This commit is contained in:
sastar
2022-02-23 00:01:36 +08:00
parent aa0f72edd8
commit 2c6c79ac4f

View File

@@ -326,7 +326,8 @@ def get_data_from_json(file_number, oCC): # 从JSON返回元数据
if i not in json_data: if i not in json_data:
naming_rule += i.strip("'").strip('"') naming_rule += i.strip("'").strip('"')
else: else:
naming_rule += json_data.get(i) item = json_data.get(i)
naming_rule += item if type(item) is not list else "&".join(item)
json_data['naming_rule'] = naming_rule json_data['naming_rule'] = naming_rule
return json_data return json_data