From b6fdae1e72c377e00f4206aeb52bd39aa27e220d Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 13 May 2020 17:30:05 +0000 Subject: [PATCH 1/1] python: Use closest match for countries Signed-off-by: Michael Tremer --- src/python/location-importer.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/python/location-importer.in b/src/python/location-importer.in index 26e4d0d..645144a 100644 --- a/src/python/location-importer.in +++ b/src/python/location-importer.in @@ -221,6 +221,8 @@ class CLI(object): ( SELECT networks.country FROM networks WHERE announcements.network <<= networks.network + ORDER BY masklen(networks.network) DESC + LIMIT 1 ) AS country, -- Flags -- 2.39.2