forgot to change class
This commit is contained in:
parent
0af718949c
commit
9a50318740
|
@ -3,9 +3,9 @@ import datetime
|
|||
|
||||
|
||||
class Mango:
|
||||
def __init__(self, username, password, host, port):
|
||||
def __init__(self, connect):
|
||||
try:
|
||||
self.client = MongoClient(username=username, password=password, host=host, port=port)
|
||||
self.client = MongoClient(connect)
|
||||
self.users = self.client['dns']['users']
|
||||
except ConnectionError:
|
||||
print('MongoDB connection error')
|
||||
|
|
Reference in New Issue