lazy load quarantine objects in cli

This commit is contained in:
2021-10-01 00:53:18 +02:00
parent b9b6a62b5e
commit 5b21adcd24
5 changed files with 26 additions and 45 deletions

View File

@@ -141,10 +141,6 @@ class DatabaseWhitelist(WhitelistBase):
cfg.append(f"{arg}={self.cfg[arg]}")
return "DatabaseWhitelist(" + ", ".join(cfg) + ")"
@property
def type(self):
return "DB"
def _entry_to_dict(self, entry):
result = {}
result[entry.id] = {