Fix missing bible import in study guides routes

The bible module was only imported inside get_books() but was
referenced in study_guide_detail() for verse lookups, causing
all verse texts to fail silently.

Also excludes .venv from Docker volume mount to prevent
local/container environment conflicts.

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-25 20:45:55 -05:00
parent 5c1e4034f5
commit 9aab232937
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -5,6 +5,7 @@ services:
- "8000:8000"
volumes:
- .:/app
- /app/.venv
environment:
- PYTHONUNBUFFERED=1
- PRELOAD_INTERLINEAR=true
+1 -1
View File
@@ -4,6 +4,7 @@ This module contains the study guides routes and content.
"""
from fastapi import APIRouter, Request, HTTPException
from fastapi.responses import HTMLResponse
from ..kjv import bible
router = APIRouter(tags=["Study Guides"])
@@ -19,7 +20,6 @@ def init_templates(app_templates):
def get_books():
"""Get list of Bible books."""
from ..kjv import bible
return list(bible.iter_books())