fix: Worse AS is position 1 (not 0).
parent
27dfb7dcf1
commit
5257846241
|
@ -132,7 +132,7 @@ class Querying():
|
||||||
if not r:
|
if not r:
|
||||||
r = 0
|
r = 0
|
||||||
if with_position and not source:
|
if with_position and not source:
|
||||||
to_return['response'] = {'rank': float(r), 'position': self.cache.zrevrank(key, asn),
|
to_return['response'] = {'rank': float(r), 'position': self.cache.zrevrank(key, asn) + 1,
|
||||||
'total_known_asns': self.cache.zcard(key)}
|
'total_known_asns': self.cache.zcard(key)}
|
||||||
else:
|
else:
|
||||||
to_return['response'] = float(r)
|
to_return['response'] = float(r)
|
||||||
|
|
Loading…
Reference in New Issue