mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user