From 6cab457bdaf375af4abbdccfb92057b3933af90b Mon Sep 17 00:00:00 2001 From: Koos85 Date: Wed, 28 Aug 2024 10:53:24 +0200 Subject: [PATCH] fix + lint --- lib/check/ipflow.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/check/ipflow.py b/lib/check/ipflow.py index 3519daa..f5ba48c 100644 --- a/lib/check/ipflow.py +++ b/lib/check/ipflow.py @@ -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 @@ -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: @@ -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, ) )