mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-11-20 06:16:33 +00:00
Change if the exclusions change
This commit is contained in:
1 parent
58301f3309
commit
4902ba1449
1 file changed
+3
@@ -150,6 +150,9 @@ def haschanged() -> bool:
|
||||
ruleshash = hashlib.sha256(getrules().encode()).hexdigest()
|
||||
if ruleshash not in hashes:
|
||||
c = True
|
||||
exchash = hashlib.sha256(",".join(KNOWN_BAD_FILTERS).encode()).hexdigest()
|
||||
if exchash not in hashes:
|
||||
c = True
|
||||
with open("hash.txt","w") as rulesf:
|
||||
rulesf.write(json.dumps([toph,ruleshash]))
|
||||
rulesf.close()
|
||||
|
||||
Reference in new issue
Block a user