|
|
@@ -20,22 +20,21 @@ def main():
|
|
|
pre_filter_threshold = config_json['preFilterThreshold']
|
|
|
prompt_id = config_json['promptId']
|
|
|
model_value_config = config_json['modelValueConfig']
|
|
|
+ pre_filter_search_accounts = config_json['preFilterSearchAccountIds']
|
|
|
for merge_cate2 in config_json['mergeCate2PatternPlanIdMap']:
|
|
|
type_json = config_json['mergeCate2PatternPlanIdMap'][merge_cate2]
|
|
|
if merge_cate2 not in new_config_json:
|
|
|
new_config_json[merge_cate2] = {}
|
|
|
|
|
|
- for produce_type in type_json:
|
|
|
- produce_plan_ids = type_json[produce_type]
|
|
|
-
|
|
|
- new_config_json[merge_cate2][produce_type] = {
|
|
|
- "accountFilters": account_filters,
|
|
|
- "contentFilters": content_filters,
|
|
|
- "preFilterThreshold": pre_filter_threshold,
|
|
|
- "promptId": prompt_id,
|
|
|
- "modelValueConfig": model_value_config,
|
|
|
- "producePlanIds": produce_plan_ids
|
|
|
- }
|
|
|
+ new_config_json[merge_cate2] = {
|
|
|
+ "accountFilters": account_filters,
|
|
|
+ "contentFilters": content_filters,
|
|
|
+ "preFilterThreshold": pre_filter_threshold,
|
|
|
+ "promptId": prompt_id,
|
|
|
+ "modelValueConfig": model_value_config,
|
|
|
+ "patternProducePlanIdsMap": type_json,
|
|
|
+ "preFilterSearchAccountIds": pre_filter_search_accounts
|
|
|
+ }
|
|
|
|
|
|
print(json.dumps(new_config_json, indent=4, ensure_ascii=False))
|
|
|
|