X-Git-Url: http://git.kaliko.me/?p=sid.git;a=blobdiff_plain;f=sid%2Frtbl.py;fp=sid%2Frtbl.py;h=b5c58cbef662635c5105572f3812d47d4903547f;hp=0ea3bbbf36a8be446305595d36eeac78501e5795;hb=6c1a29c0d63ca630a36eef61a0f38baf9f7a59a8;hpb=0d54812d5ea9524b8dbc9c39b85e7618a5fddd0b diff --git a/sid/rtbl.py b/sid/rtbl.py index 0ea3bbb..b5c58cb 100644 --- a/sid/rtbl.py +++ b/sid/rtbl.py @@ -21,9 +21,11 @@ def jid_to_sha256(jid: JID) -> str: class BL: """Plain object to keep track of block list items. Only used in RTBL plugin.""" + #: Initial seed to ease testing + init = {} def __init__(self, initial_bl): - self.sha256_jids: Dict[str, Optional[str]] = {} + self.sha256_jids: Dict[str, Optional[str]] = dict(BL.init) for item in initial_bl: self.insert_item(item)