Create list_invited.py
This commit is contained in:
parent
383afb5464
commit
e8b37e0b39
1 changed files with 18 additions and 0 deletions
18
check_users/list_invited.py
Normal file
18
check_users/list_invited.py
Normal 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()
|
||||
|
||||
|
||||
|
Loading…
Reference in a new issue