logger.debug("block[block_level]='%s' - AFTER!", block["block_level"])
if processing.block(row["domain"], blocked, block["reason"], block["block_level"]) and block["block_level"] in ["suspended", "rejected"] and config.get("bot_enabled"):
- logger.debug("Appending blocked='%s',reason='%s' for blocker='%s' ...", block["blocked"], block["block_level"], row["domain"])
+ logger.debug("Appending blocked='%s',reason='%s' for blocker='%s' ...", blocked, block["block_level"], row["domain"])
blockdict.append({
"blocked": blocked,
"reason" : block["reason"],
})
+ elif blocked is not None:
+ logger.debug("blocked='%s' is maybe added and needs update.", blocked)
+ if not obfuscation.is_added(block["blocked"]):
+ logger.debug("Invoking obfuscation.add(%s) ...", block["blocked"])
+ obfuscation.add(block["blocked"])
+ else:
+ logger.debug("Invoking obfuscation.update(%s) ...", block["blocked"])
+ obfuscation.update(block["blocked"])
logger.debug("Setting obfuscated=%d for row[domain]='%s' ...", obfuscated, row["domain"])
instances.set_obfuscated_blocks(row["domain"], obfuscated)