From 1e2d5cf742679a878b0b3ec75f8e98378c438ad1 Mon Sep 17 00:00:00 2001 From: Soxoj Date: Sun, 6 Mar 2022 16:19:25 +0300 Subject: [PATCH] Fixed issue with str alexaRank --- maigret/resources/data.json | 2 +- utils/update_site_data.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/maigret/resources/data.json b/maigret/resources/data.json index e9e8392..89a1967 100644 --- a/maigret/resources/data.json +++ b/maigret/resources/data.json @@ -1034,7 +1034,7 @@ "disabled": true }, "Appian": { - "alexaRank": "56402", + "alexaRank": 56402, "url": "https://community.appian.com/members/{username}", "checkType": "message", "absenceStrs": [ diff --git a/utils/update_site_data.py b/utils/update_site_data.py index 05934e2..f197475 100755 --- a/utils/update_site_data.py +++ b/utils/update_site_data.py @@ -114,7 +114,7 @@ Rank data fetched from Alexa by domains. sys.stdout.flush() index = index + 1 - sites_full_list = [(s, s.alexa_rank) for s in sites_subset] + sites_full_list = [(s, int(s.alexa_rank)) for s in sites_subset] sites_full_list.sort(reverse=False, key=lambda x: x[1])