From 02e67a901f1cce3151e9d35c054bae545d6d793c Mon Sep 17 00:00:00 2001 From: shortcutme Date: Sat, 16 Mar 2019 04:26:27 +0100 Subject: [PATCH] Import global maxminddb module --- plugins/Sidebar/SidebarPlugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Sidebar/SidebarPlugin.py b/plugins/Sidebar/SidebarPlugin.py index 039c32b3..c06ab831 100644 --- a/plugins/Sidebar/SidebarPlugin.py +++ b/plugins/Sidebar/SidebarPlugin.py @@ -625,7 +625,7 @@ class UiWebsocketPlugin(object): return loc def getPeerLocations(self, peers): - from . import maxminddb + import maxminddb db_path = config.data_dir + '/GeoLite2-City.mmdb' if not os.path.isfile(db_path) or os.path.getsize(db_path) == 0: if not self.downloadGeoLiteDb(db_path):