From 81f8f7d42692b880f2b96dead2a0e3c718e5fbd1 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Fri, 25 Jun 2021 11:10:25 +0200 Subject: [PATCH] Move location of GeoIP data to config file --- web_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_view.py b/web_view.py index 0d5675b..7543a46 100755 --- a/web_view.py +++ b/web_view.py @@ -211,7 +211,7 @@ def get_markers(all_items): def get_user_location(): - gi = GeoIP.open("/home/edward/lib/data/GeoIPCity.dat", GeoIP.GEOIP_STANDARD) + gi = GeoIP.open(app.config["GEOIP_DATA"], GeoIP.GEOIP_STANDARD) remote_ip = request.remote_addr gir = gi.record_by_addr(remote_ip)