fix: last commit was buggy

pull/12/head
Raphaël Vinot 2018-07-13 17:41:27 +02:00
parent 5d335159e6
commit 0df86d1a25
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', '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