Skip to content

Commit

Permalink
Fix trim and deduplicate tags deduplication
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend committed Jun 12, 2024
1 parent 0094a1d commit a3e1f45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catalog/dags/maintenance/trim_and_deduplicate_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def trim_and_deduplicate_tags():
)
)
FROM (
SELECT DISTINCT ON (tag->>'name', tag->'provider')
SELECT DISTINCT ON (trimmed_name, tag->'provider')
trim(tag->>'name') trimmed_name,
tag
FROM jsonb_array_elements({media_type}.tags || '[]'::jsonb) tag
Expand Down

0 comments on commit a3e1f45

Please sign in to comment.