From 9aab232937c90e681c40517ad16030e665d201cd Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 25 Nov 2025 20:45:55 -0500 Subject: [PATCH] Fix missing bible import in study guides routes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- docker-compose.yml | 1 + kjvstudy_org/routes/study_guides.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index c0b250e..83ea9a8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,7 @@ services: - "8000:8000" volumes: - .:/app + - /app/.venv environment: - PYTHONUNBUFFERED=1 - PRELOAD_INTERLINEAR=true diff --git a/kjvstudy_org/routes/study_guides.py b/kjvstudy_org/routes/study_guides.py index dc00e37..bcc04b3 100644 --- a/kjvstudy_org/routes/study_guides.py +++ b/kjvstudy_org/routes/study_guides.py @@ -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())