From 4b7f0b8d95c0b606a4a73b6a5284e4b0e60b29bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Tue, 10 Apr 2018 23:28:52 +0200 Subject: [PATCH] fix: get the score instead of the position of an ASN --- api/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/api.py b/api/api.py index c7514c4..3527525 100644 --- a/api/api.py +++ b/api/api.py @@ -60,7 +60,7 @@ class BGPRanking(): '''Get the rank of a single ASN, weighted by source.''' d = self.__normalize_date(date) key = f'{d}|asns|{ipversion.value}' - return self.ranking.zrank(key, asn) + return self.ranking.zscore(key, asn) def asn_rank_by_source(self, asn: int, source: str, date: Dates= datetime.date.today(), ipversion: IPVersion=IPVersion.v4): '''Get the rank of a single ASN, not weighted by source.'''