fix: incoherent logic

pull/12/head
Raphaël Vinot 2018-07-13 17:55:42 +02:00
parent 0df86d1a25
commit c581ea4c4c
1 changed files with 1 additions and 1 deletions

View File

@ -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') and self.asn_meta.exists('v6|last'):
if not self.asn_meta.exists('v4|last') or not self.asn_meta.exists('v6|last'):
'''Failsafe if asn_meta has not been populated yet'''
unset_running(self.__class__.__name__)
return