Remove useless variable
This commit is contained in:
parent
81f734c19a
commit
da369dc61b
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user