Skip to content

Commit

Permalink
Recover yaml format for combined ruleset.
Browse files Browse the repository at this point in the history
  • Loading branch information
xkww3n committed Dec 6, 2023
1 parent ca5e7c3 commit be5a64a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Utils/ruleset.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,12 @@ def batch_dump(src: RuleSet, targets: list, dst_path: Path, filename: str) -> No
if "geosite" in targets:
logging.warning(f"{filename}: {src.Type}-type ruleset can't be exported to GeoSite source, ignored.")
targets.remove("geosite")
if src.Type == "Combined" and any(t in targets for t in ["text", "text-plus", "yaml", "geosite"]):
if src.Type == "Combined" and any(t in targets for t in ["text", "text-plus", "geosite"]):
logging.info(f"{filename}: Ignored unsupported type for combined ruleset.")
if "text" in targets:
targets.remove("text")
if "text-plus" in targets:
targets.remove("text-plus")
if "yaml" in targets:
targets.remove("yaml")
if "geosite" in targets:
targets.remove("geosite")
for target in targets:
Expand Down

0 comments on commit be5a64a

Please sign in to comment.