Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Afficher la carte de la BNLC principale #4403

Merged
merged 3 commits into from
Dec 20, 2024
Merged

Afficher la carte de la BNLC principale #4403

merged 3 commits into from
Dec 20, 2024

Conversation

ptitfred
Copy link
Contributor

Fixes #4401.

@ptitfred ptitfred requested a review from a team as a code owner December 20, 2024 16:27
@@ -420,7 +420,7 @@ defmodule TransportWeb.DatasetView do
resources
|> Enum.filter(fn r -> r.format == "csv" end)
|> Enum.reject(fn r -> Resource.community_resource?(r) or Resource.documentation?(r) end)
|> Enum.max_by(& &1.last_update, DateTime, fn -> nil end)
|> Enum.max_by(&{&1.type, &1.last_update}, TransportWeb.DatasetView.ResourceBNLCSortKey, fn -> nil end)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ce code n'est pas dédié uniquement à la BNLC, revoir le nom du module pour le tri ?

@ptitfred ptitfred added this pull request to the merge queue Dec 20, 2024
Merged via the queue into master with commit 3e3bdcb Dec 20, 2024
4 checks passed
@ptitfred ptitfred deleted the fix-4401 branch December 20, 2024 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Choix de la ressource main pour l'affichage de la carte sur la page du jeu de données
2 participants