mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
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:
@@ -5,6 +5,7 @@ services:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- .:/app
|
||||
- /app/.venv
|
||||
environment:
|
||||
- PYTHONUNBUFFERED=1
|
||||
- PRELOAD_INTERLINEAR=true
|
||||
|
||||
@@ -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())
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user