Skip to content

Commit

Permalink
update db file name in read_mmdb
Browse files Browse the repository at this point in the history
  • Loading branch information
张锐 committed Feb 24, 2016
1 parent 21b998f commit e3596fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion read_mmdb.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import maxminddb
import json
reader = maxminddb.open_database('1.mmdb')
reader = maxminddb.open_database('MaxMind_DB_Writer_perl_create.mmdb')
result = reader.get('1.0.16.1')
reader.close()
print json.dumps(result, indent=2)
2 changes: 1 addition & 1 deletion read_mmdb.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'maxminddb'
db = MaxMindDB.new('/tmp/1.mmdb')
db = MaxMindDB.new('MaxMind_DB_Writer_perl_create.mmdb')
ret = db.lookup('1.0.16.1')
print ret.found?

0 comments on commit e3596fb

Please sign in to comment.