Expand cross-refs most of the time, collapse only when back-to-back

Reduced cooldown from 3 verses to 1 - only collapse when consecutive
verses both have cross-refs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-12-05 08:15:03 -05:00
parent 29adf18818
commit 2eb3f71d76
+1 -1
View File
@@ -203,7 +203,7 @@ async def read_chapter(request: Request, book: str, chapter: int):
recent_words = {} # Track {word: verse_num} for cooldown
cooldown_verses = 5 # Don't repeat same word within 5 verses
last_xref_verse = 0 # Track last verse with cross-refs
xref_cooldown = 3 # Don't show cross-refs within 3 verses of each other
xref_cooldown = 1 # Only collapse when back-to-back
for verse in verses:
commentary = generate_commentary(book, chapter, verse)
# Filter out words shown recently (within cooldown period)