From 4902ba1449fe87796b81687ff30f2bfb4458a1a7 Mon Sep 17 00:00:00 2001 From: iam-py-test <84232764+iam-py-test@users.noreply.github.com> Date: Thu, 11 Nov 2021 07:51:26 -0500 Subject: [PATCH] Change if the exclusions change --- ClearURLs for uBo/compile.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ClearURLs for uBo/compile.py b/ClearURLs for uBo/compile.py index f5dd6bca3..4eb853c8e 100644 --- a/ClearURLs for uBo/compile.py +++ b/ClearURLs for uBo/compile.py @@ -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()