From e8b37e0b393d9c614110c0bf0cfa4ee39461b24b Mon Sep 17 00:00:00 2001 From: David Rotermund Date: Tue, 16 Jul 2024 18:57:59 +0200 Subject: [PATCH] Create list_invited.py --- check_users/list_invited.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 check_users/list_invited.py diff --git a/check_users/list_invited.py b/check_users/list_invited.py new file mode 100644 index 0000000..720202d --- /dev/null +++ b/check_users/list_invited.py @@ -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() + + +