Skip to content

Commit

Permalink
modified db to whaleshark
Browse files Browse the repository at this point in the history
  • Loading branch information
simonzg committed Jun 8, 2011
1 parent 0ad6356 commit d0ad4e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dianping/dianping/db.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import pymongo

whaleshark = '128.210.189.88'
def get_connection():
conn = pymongo.Connection().dianping
conn = pymongo.Connection(whaleshark).dianping
conn.authenticate('dianping','crawler')
return conn

0 comments on commit d0ad4e3

Please sign in to comment.