Skip to content

Commit 64f08d7

Browse files
rename lookup function in geolite
1 parent 9204127 commit 64f08d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

psql/consumers/geolite_city.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def load_database(self):
4646
self.download_database(overwrite=False)
4747
self.reader = geoip2.database.Reader(self.dbfname)
4848

49-
def country(self, ip):
49+
def lookup(self, ip):
5050
"""Find the country code for the given IP address"""
5151
cc = "ZZ"
5252
try:

0 commit comments

Comments
 (0)