mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-10-04 18:07:08 +01: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:
co-authored by
rusty-snake
parent
7d0c71d71b
commit
e57ddcf0c5
+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