Remove useless variable

This commit is contained in:
Jet Li 2025-02-03 09:13:20 +00:00
parent 81f734c19a
commit da369dc61b

View File

@ -35,13 +35,11 @@ class DocumentCleaner:
# Retrieve all document IDs from DocumentDoc
all_document_ids = set()
document_locations = {}
async for doc in DocumentDoc.find(
{"created_by": {"$regex": "^content-service-"}}
): # Fetch all documents that are created by content-service
if doc.document_id: # Ensure document_id is not None
all_document_ids.add(doc.document_id)
document_locations[doc.document_id] = doc.location
print(f"All document IDs (from DocumentDoc): {all_document_ids}")
# Find unused document IDs