fix: Revert the position number (the lower, the worse).

pull/12/head
Raphaël Vinot 2019-05-21 12:22:43 +02:00
parent aa0d4581a8
commit 4c50285971
1 changed files with 1 additions and 1 deletions

View File

@ -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.zrank(key, asn), to_return['response'] = {'rank': float(r), 'position': self.cache.zrevrank(key, asn),
'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)