deleted extras and fixed downloaded
This commit is contained in:
parent
98677892e2
commit
ecb330206a
2 changed files with 2 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -13,3 +13,4 @@ GeoLite2-City.tar.gz
|
|||
.idea/
|
||||
.idea/*
|
||||
varken.ini
|
||||
data/
|
||||
|
|
|
@ -278,7 +278,7 @@ def geoip_download():
|
|||
for files in tar.getmembers():
|
||||
if 'GeoLite2-City.mmdb' in files.name:
|
||||
files.name = os.path.basename(files.name)
|
||||
tar.extract(files, '{}/'.format(os.path.dirname(os.path.realpath(__file__))))
|
||||
tar.extract(files, abspath(join('..', 'data')))
|
||||
os.remove(tar_dbfile)
|
||||
|
||||
def geo_lookup(ipaddress):
|
||||
|
|
Loading…
Reference in a new issue