Skip to content

Commit d7208f7

Browse files
committed
update console logs for fetch_and_replace_full_text
1 parent a88f3f6 commit d7208f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sde_collections/tasks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ def fetch_and_replace_full_text(collection_id, server_name):
252252

253253
# Step 1: Delete all existing DumpUrl entries for the collection
254254
deleted_count, _ = DumpUrl.objects.filter(collection=collection).delete()
255-
print(f"Deleted {deleted_count} existing DumpUrl entries for collection '{collection.name}'.")
256255

257256
# Step 2: Create new DumpUrl entries from the fetched documents
258257
processed_count = 0
@@ -269,4 +268,6 @@ def fetch_and_replace_full_text(collection_id, server_name):
269268
# Handle duplicate URL case if needed
270269
print(f"Duplicate URL found, skipping: {doc['url']}")
271270

271+
print(f"Processed {processed_count} new records.")
272+
272273
return f"Successfully processed {len(documents)} records and updated the database."

0 commit comments

Comments
 (0)