mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-10-24 16:46:14 +08:00
to fix #154
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ def get_db_path():
|
|||||||
db_path = data_storage_dir.joinpath('ip2location.db')
|
db_path = data_storage_dir.joinpath('ip2location.db')
|
||||||
if db_path.exists():
|
if db_path.exists():
|
||||||
return db_path
|
return db_path
|
||||||
zf = zipfile.ZipFile(zip_path)
|
zf = zipfile.ZipFile(str(zip_path))
|
||||||
zf.extract('ip2location.db', data_storage_dir)
|
zf.extract('ip2location.db', data_storage_dir)
|
||||||
return db_path
|
return db_path
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user