Skip to content

Commit

Permalink
Move geolite database into common
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekuruu committed Dec 24, 2023
1 parent bc3f252 commit de37575
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added geolite.mmdb
Binary file not shown.
2 changes: 1 addition & 1 deletion helpers/external/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def fetch_geolocation(ip: str, is_local: bool = False) -> Geolocation:

def fetch_db(ip: str) -> Geolocation | None:
try:
with Reader(f'{config.DATA_PATH}/geolite.mmdb') as reader:
with Reader(f'./app/common/geolite.mmdb') as reader:
response = reader.city(ip)

return Geolocation(
Expand Down

0 comments on commit de37575

Please sign in to comment.