File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,6 @@ def fetch_and_replace_full_text(collection_id, server_name):
252
252
253
253
# Step 1: Delete all existing DumpUrl entries for the collection
254
254
deleted_count , _ = DumpUrl .objects .filter (collection = collection ).delete ()
255
- print (f"Deleted { deleted_count } existing DumpUrl entries for collection '{ collection .name } '." )
256
255
257
256
# Step 2: Create new DumpUrl entries from the fetched documents
258
257
processed_count = 0
@@ -269,4 +268,6 @@ def fetch_and_replace_full_text(collection_id, server_name):
269
268
# Handle duplicate URL case if needed
270
269
print (f"Duplicate URL found, skipping: { doc ['url' ]} " )
271
270
271
+ print (f"Processed { processed_count } new records." )
272
+
272
273
return f"Successfully processed { len (documents )} records and updated the database."
You can’t perform that action at this time.
0 commit comments