Skip to content

Commit

Permalink
fix + lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Koos85 committed Aug 28, 2024
1 parent 72ec2df commit 6cab457
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/check/ipflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async def check_ipflow(
raise IgnoreCheckException

# get current subscription
subs = subscriptions.get((asset.id, 'ipflow'))
subs = subscriptions.get((asset.id, 'ipflow', address))
result = subs.result if subs else {}

# re-subscribe
Expand All @@ -33,8 +33,8 @@ async def check_ipflow(
f.values[f.template.index.index(7)],
str(ipaddress.ip_address(f.values[f.template.index.index(12)])),
f.values[f.template.index.index(11)],
str(ipaddress.ip_address(f.values[f.template.index.index(15)])) \
if 15 in f.template.index else None,
str(ipaddress.ip_address(f.values[f.template.index.index(15)]))
if 15 in f.template.index else None,
)
)
else:
Expand All @@ -43,8 +43,8 @@ async def check_ipflow(
f.values[f.template.index.index(7)],
str(ipaddress.ip_address(f.values[f.template.index.index(12)])),
f.values[f.template.index.index(11)],
str(ipaddress.ip_address(f.values[f.template.index.index(15)])) \
if 15 in f.template.index else None,
str(ipaddress.ip_address(f.values[f.template.index.index(15)]))
if 15 in f.template.index else None,
)
)

Expand Down

0 comments on commit 6cab457

Please sign in to comment.