ventilaar
/
clim
Archived
1
Fork 0

forgot to change class

This commit is contained in:
Ventilaar 2022-04-02 22:41:02 +02:00
parent 0af718949c
commit 9a50318740
1 changed files with 2 additions and 2 deletions

View File

@ -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')