Skip to content

Commit 86764a8

Browse files
committed
update the fetch_and_replace_full_text to migrate_dump_to_delta on import of collection
1 parent 868798b commit 86764a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sde_collections/tasks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,8 @@ def fetch_and_replace_full_text(collection_id, server_name):
268268
# Handle duplicate URL case if needed
269269
print(f"Duplicate URL found, skipping: {doc['url']}")
270270

271+
collection.migrate_dump_to_delta()
272+
271273
print(f"Processed {processed_count} new records.")
272274

273275
return f"Successfully processed {len(documents)} records and updated the database."

0 commit comments

Comments
 (0)