clear all users

This commit is contained in:
Pritimay Sarkar
2023-09-18 12:14:36 +05:30
parent c9c7687948
commit 10502399b7

View File

@@ -11,7 +11,7 @@ def move_documents(source_collection):
db = firestore.client() db = firestore.client()
# Get all documents from the source collection # Get all documents from the source collection
source_docs = db.collection(source_collection).where(filter=FieldFilter("name", "==", " S2-A-R1")).stream() source_docs = db.collection(source_collection).where(filter=FieldFilter("testStatus", "==", False)).stream()
for doc in source_docs: for doc in source_docs:
# Extract the document ID # Extract the document ID
doc_id = doc.id doc_id = doc.id