Skip to content

Commit

Permalink
upgrade version to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Toperlock authored Oct 16, 2024
1 parent c9641a1 commit 21a9737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def parse_list_file(link, output_directory):
df['pattern'] = df['pattern'].replace(MAP_DICT) # 替换pattern为字典中的值
os.makedirs(output_directory, exist_ok=True) # 创建自定义文件夹

result_rules = {"version": 1, "rules": []}
result_rules = {"version": 2, "rules": []}
domain_entries = []
for pattern, addresses in df.groupby('pattern')['address'].apply(list).to_dict().items():
if pattern == 'domain_suffix':
Expand Down

0 comments on commit 21a9737

Please sign in to comment.