暫無描述

jherve 207cc110db Move database URL to secrets 1 年之前
src 16211d149d Turn page addition into a transaction 1 年之前
static cc5966b339 More tweaks to UI 1 年之前
templates 67e0e31efd Slight tweaks to UI 1 年之前
tests 1c91c4bfe6 Initial commit 1 年之前
.gitignore fd251b215a Add dynaconf for configuration management 1 年之前
README.md 7e076bd9d7 Add a note about a bug 1 年之前
config.py caa854cba8 Format some file 1 年之前
pyproject.toml f64bfbdb78 Add proper worker/job/jobqueue abstractions 1 年之前
requirements-dev.lock f64bfbdb78 Add proper worker/job/jobqueue abstractions 1 年之前
requirements.lock f64bfbdb78 Add proper worker/job/jobqueue abstractions 1 年之前
settings.toml 207cc110db Move database URL to secrets 1 年之前

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.