Update compile.py

This commit is contained in:
iam-py-test
2021-11-08 07:41:10 -05:00
committed by GitHub
parent e509a12995
commit 55e88ad868
+7
View File
@@ -23,6 +23,7 @@
import json
import sys
import hashlib
from datetime import date
from typing import IO
@@ -135,6 +136,12 @@ def getrules() -> str:
RULES = "https://raw.githubusercontent.com/ClearURLs/Rules/master/data.min.json"
return requests.get(RULES).text
def haschanged() -> bool:
try:
hashes = json.loads(open("hash.txt").read()
except:
hashes = []
toph = hashlib.sha256("")
def main() -> int:
data_min_json = json.loads(getrules())