From ed14f7f5e87c96a6eb449a9170143f60f97221fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Mon, 30 Jul 2018 15:17:57 +0200 Subject: [PATCH] fix: cast to float & rendering --- bgpranking/querying.py | 2 +- website/web/templates/top_forms.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bgpranking/querying.py b/bgpranking/querying.py index 07802cd..9bafe69 100644 --- a/bgpranking/querying.py +++ b/bgpranking/querying.py @@ -68,7 +68,7 @@ class Querying(): key = f'{d}|asns|{ipversion}' r = self.ranking.zscore(key, asn) if r: - return r + return float(r) return 0 def get_sources(self, date: Dates=datetime.date.today()): diff --git a/website/web/templates/top_forms.html b/website/web/templates/top_forms.html index 58696ca..ad32326 100644 --- a/website/web/templates/top_forms.html +++ b/website/web/templates/top_forms.html @@ -3,14 +3,14 @@ -
+
-
+
-
+ ASN to search: