118 db = Database(DATABASE_URL, BOT_USERNAME)
119 mongo_db_veritabani = MongoClient(DATABASE_URL)
120 dcmdb = mongo_db_veritabani.handlers
Exception has occurred: TypeError Database.init() missing 1 required positional argument: 'col' File "C:\Users\dezze\OneDrive\Рабочий стол\Bot\modules\broadcast.py", line 118, in db = Database(DATABASE_URL, BOT_USERNAME)
Please help..
CodePudding user response:
so, what is the problem? you have to add one more parameter to thedb = Database(DATABASE_URL, BOT_USERNAME)
which will be called as you want to call a col. for example db = Database(DATABASE_URL, BOT_USERNAME, "col1")
CodePudding user response:
Exception has occurred: TypeError
Database.__init__() takes 3 positional arguments but 4 were given
File "C:\Users\dezze\OneDrive\Рабочий стол\Bot\modules\broadcast.py", line 118, in <module>
db = Database(DATABASE_URL, BOT_USERNAME, "col")
i am newbie.. :/