Skip to content

Commit

Permalink
Unique sitemaps
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmj committed May 7, 2024
1 parent 13913dc commit a1c7ec5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/preview/queue.ex
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ defmodule Preview.Queue do
[]
end
end)
# Handle old packages with broken, non-unique files
|> Enum.uniq_by(fn {path, _blob} -> path end)
|> Enum.sort()


update_package_sitemap(package, files)
Logger.info("#{key}: done")
Expand Down

0 comments on commit a1c7ec5

Please sign in to comment.