#help

1 messages · Page 1 of 1 (latest)

spare raven
#

Why are you trying to run get_database on a string?

small jackal
#

That's not how mongo works

naive plinth
#

I believe the correct way to do this would be the following:

password = os.environ["MongoDB password"]

client = pymongo.MongoClient(INSERT CONNECTION LINK HERE)
db = client.warns
coll = db.serverwarns```
small jackal
#

it's py database = client["databse"] collection = database["defense"]

left warren
#

Also don't use pymongo. It is a blocking library. Not meant for async programming
Use motor as it is async

left warren
#

And please title your posts better than "help"