From da369dc61bed6add6c7230c6a0540c5469393215 Mon Sep 17 00:00:00 2001 From: Jet Li Date: Mon, 3 Feb 2025 09:13:20 +0000 Subject: [PATCH] Remove useless variable --- apps/content/backend/content/document_cleaner.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/content/backend/content/document_cleaner.py b/apps/content/backend/content/document_cleaner.py index d08f174..9bc4d30 100644 --- a/apps/content/backend/content/document_cleaner.py +++ b/apps/content/backend/content/document_cleaner.py @@ -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