Nenhuma descrição

jherve c5eb2f2178 Drastically improve input data validation / normalization 1 ano atrás
src c5eb2f2178 Drastically improve input data validation / normalization 1 ano atrás
static 3501a02749 Add logo information and display it in the UI 1 ano atrás
templates 823e4ba58d Add viewport meta tag for mobile display 1 ano atrás
tests 1c91c4bfe6 Initial commit 1 ano atrás
.gitignore d51ff03bb2 Switch to Annoy for vector search/indexing 1 ano atrás
README.md 7e076bd9d7 Add a note about a bug 1 ano atrás
config.py caa854cba8 Format some file 1 ano atrás
pyproject.toml cf34257719 Extend duration display to similar articles 1 ano atrás
requirements-dev.lock cf34257719 Extend duration display to similar articles 1 ano atrás
requirements-embeddings.lock 5d907e27a8 Add a requirements file for embeddings 1 ano atrás
requirements.lock cf34257719 Extend duration display to similar articles 1 ano atrás
settings.toml 207cc110db Move database URL to secrets 1 ano atrás

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.