Files
youclonedl/backend/routers
Mattias Tall 1405acfaed Revert channel stats to correlated subqueries (CTE had a param binding bug)
The CTE approach returned 0 rows — likely a SQLite/SQLAlchemy interaction
with :user_id appearing in multiple CTEs. Reverted to the original
correlated-subquery form which is proven correct.

The 4 indexes added in the previous commit still apply and will make
the per-channel subqueries faster once the DB is indexed on startup.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-26 16:10:24 +02:00
..
2026-05-25 20:09:04 +02:00
2026-05-25 20:09:04 +02:00
2026-05-25 20:09:04 +02:00
2026-05-25 20:09:04 +02:00
2026-05-25 20:09:04 +02:00
2026-05-25 20:09:04 +02:00
2026-05-25 20:09:04 +02:00
2026-05-25 20:09:04 +02:00