Sen descrición

jherve ed80ab42db Add some missing dependencies hai 1 ano
src 6e46b9c2c0 Add support for BFMTV hai 1 ano
static cc5966b339 More tweaks to UI hai 1 ano
templates 67e0e31efd Slight tweaks to UI hai 1 ano
tests 1c91c4bfe6 Initial commit hai 1 ano
.gitignore 1c91c4bfe6 Initial commit hai 1 ano
README.md 7e076bd9d7 Add a note about a bug hai 1 ano
pyproject.toml ed80ab42db Add some missing dependencies hai 1 ano
requirements-dev.lock ed80ab42db Add some missing dependencies hai 1 ano
requirements.lock ed80ab42db Add some missing dependencies hai 1 ano

README.md

de_quoi_parle_le_monde

Bug

In the featured_article_snapshot_id view, the field featured_article_snapshot_id is taken as if it was unique by row, but it is not.

This can be easily checked with this query :

SELECT * FROM (
    SELECT featured_article_snapshot_id, json_group_array(snapshot_id), COUNT(*) as count
    FROM snapshot_apparitions
    WHERE is_main -- Not required
    GROUP BY featured_article_snapshot_id
)
WHERE count > 1

Among other things it leads to "deadends" while browsing the UI, likely because the timestamp search and time diff relies on this false assumption.