mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-10-04 01:25:18 -07:00
list_generations() fetched versions with one SELECT per generation on the page (50 rows -> 51 queries). Add _get_versions_for_generations() which loads all versions for the page in a single WHERE generation_id IN (...) query and groups them in memory; the single-generation helper now delegates to it so story item details behave identically. Generated with Codebuff 🤖 Co-Authored-By: Codebuff <[email protected]>