Create list_invited.py

This commit is contained in:
David Rotermund 2024-07-16 18:57:59 +02:00 committed by GitHub
parent 383afb5464
commit e8b37e0b39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,18 @@
import pymongo
container_name:str = "overleafmongo"
port: int = 27017
client = pymongo.MongoClient(container_name, port)
db = client.sharelatex
users = db.projectInvites
cursor = users.find()
for user in cursor:
print(user['email'])
client.close()