invert bad conditional
This commit is contained in:
parent
6d6c2d52cd
commit
73f4ca2b53
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ async def sync_database(db, opts: Options):
|
|||
for ips, kw in ((china, "china"), (blocks, "block_target")):
|
||||
for ip in ips:
|
||||
kwargs = {kw: True}
|
||||
if db is None:
|
||||
if db is not None:
|
||||
db.modify_address(ip, **kwargs)
|
||||
await opts.ips.put(ip)
|
||||
|
||||
|
|
Loading…
Reference in a new issue