Import global maxminddb module
This commit is contained in:
parent
f331f5e92c
commit
02e67a901f
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue