Skip to content
Permalink
68adcc6bda
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
11 lines (8 sloc) 274 Bytes
import pymongo
class Mongo:
def __init__(self):
url = "mongodb+srv://:@churchee.qbavh.gcp.mongodb.net/?retryWrites=true&w=majority"
self.client = pymongo.MongoClient(url)
def getClient(self):
print("client", self.client)
return self.client['chatbox']