Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Fix `add_license_url` DAG for last items (#4839)
Krystle Salazar0a21bfc79436
diff --git a/catalog/dags/maintenance/add_license_url.py b/catalog/dags/maintenance/add_license_url.pyindex 455e1ce44..5ed104966 100644--- a/catalog/dags/maintenance/add_license_url.py+++ b/catalog/dags/maintenance/add_license_url.py@@ -136,7 +136,7 @@ def get_license_conf(license_info) -> dict:f"AND meta_data->>'license_url' IS NULL"),# Merge existing metadata with the new license_url- "update_query": f"SET updated_on = NOW(), meta_data = ({Json(license_url_dict)}::jsonb || meta_data)",+ "update_query": f"SET updated_on = NOW(), meta_data = (meta_data || {Json(license_url_dict)}::jsonb)","update_timeout": 259200, # 3 days in seconds"dry_run": False,"resume_update": False,