And another
This commit is contained in:
parent
de4ac17a84
commit
8c8fd9c597
@ -105,6 +105,7 @@ for blocker, software in c.fetchall():
|
|||||||
if blocked == "":
|
if blocked == "":
|
||||||
continue
|
continue
|
||||||
blocked == blocked.lower()
|
blocked == blocked.lower()
|
||||||
|
blocker == blocker.lower()
|
||||||
c.execute(
|
c.execute(
|
||||||
"select domain from instances where domain = ?", (blocked,)
|
"select domain from instances where domain = ?", (blocked,)
|
||||||
)
|
)
|
||||||
@ -132,6 +133,7 @@ for blocker, software in c.fetchall():
|
|||||||
else {})}
|
else {})}
|
||||||
).items():
|
).items():
|
||||||
for blocked, reason in info.items():
|
for blocked, reason in info.items():
|
||||||
|
blocker == blocker.lower()
|
||||||
blocked == blocked.lower()
|
blocked == blocked.lower()
|
||||||
c.execute(
|
c.execute(
|
||||||
"update blocks set reason = ? where blocker = ? and blocked = ? and block_level = ?",
|
"update blocks set reason = ? where blocker = ? and blocked = ? and block_level = ?",
|
||||||
@ -148,6 +150,7 @@ for blocker, software in c.fetchall():
|
|||||||
for instance in blocks:
|
for instance in blocks:
|
||||||
blocked, blocked_hash, reason = instance.values()
|
blocked, blocked_hash, reason = instance.values()
|
||||||
blocked == blocked.lower()
|
blocked == blocked.lower()
|
||||||
|
blocker == blocker.lower()
|
||||||
if blocked.count("*") <= 1:
|
if blocked.count("*") <= 1:
|
||||||
c.execute(
|
c.execute(
|
||||||
"select hash from instances where hash = ?", (blocked_hash,)
|
"select hash from instances where hash = ?", (blocked_hash,)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user