mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-11-21 00:16:33 +00:00
Update scripts/compile.py
Fix the styling Co-authored-by: rusty-snake <41237666+rusty-snake@users.noreply.github.com>
This commit is contained in:
1 parent
7d0c71d71b
commit
e57ddcf0c5
1 file changed
+5
-3
+5
-3
@@ -102,9 +102,11 @@ def print_rules(
|
||||
else:
|
||||
endrules.write(plain_format.format(rule, url_pattern) + "\n")
|
||||
|
||||
def getrules():
|
||||
import requests
|
||||
return requests.get("https://raw.githubusercontent.com/ClearURLs/Rules/master/data.min.json").text
|
||||
def getrules() -> str:
|
||||
RULES = "https://raw.githubusercontent.com/ClearURLs/Rules/master/data.min.json"
|
||||
return requests.get(RULES).text
|
||||
|
||||
|
||||
def main() -> int:
|
||||
global endrules
|
||||
data_min_json = json.loads(getrules())
|
||||
|
||||
Reference in new issue
Block a user