From 0df86d1a25f6c091814b66650dcafeb7f798cbdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Fri, 13 Jul 2018 17:41:27 +0200 Subject: [PATCH] fix: last commit was buggy --- bgpranking/ranking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpranking/ranking.py b/bgpranking/ranking.py index 0277863..9a2c157 100644 --- a/bgpranking/ranking.py +++ b/bgpranking/ranking.py @@ -75,7 +75,7 @@ class Ranking(): def compute(self): self.logger.info('Start ranking') set_running(self.__class__.__name__) - if self.asn_meta.exists('v4|last', 'v6|last') != 2: + if self.asn_meta.exists('v4|last') and self.asn_meta.exists('v6|last'): '''Failsafe if asn_meta has not been populated yet''' unset_running(self.__class__.__name__) return