fix: Revert the position number (the lower, the worse).
parent
aa0d4581a8
commit
4c50285971
|
@ -132,7 +132,7 @@ class Querying():
|
|||
if not r:
|
||||
r = 0
|
||||
if with_position and not source:
|
||||
to_return['response'] = {'rank': float(r), 'position': self.cache.zrank(key, asn),
|
||||
to_return['response'] = {'rank': float(r), 'position': self.cache.zrevrank(key, asn),
|
||||
'total_known_asns': self.cache.zcard(key)}
|
||||
else:
|
||||
to_return['response'] = float(r)
|
||||
|
|
Loading…
Reference in New Issue