From d47fc8f50d41e132ed3a19abb8ec624c59b2cabe Mon Sep 17 00:00:00 2001 From: OpenSquared Date: Wed, 24 Jun 2026 21:42:19 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20move=20instruments.json=20from=20data/?= =?UTF-8?q?=20to=20config/=20=E2=80=94=20Docker=20volume=20was=20masking?= =?UTF-8?q?=20/app/data?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The docker-compose mounts db_data named volume at /app/data which hid the instruments.json file baked into the image. Moving to /app/config which is not volume-overlaid resolves the FileNotFoundError on startup. Co-Authored-By: Claude Sonnet 4.6 --- backend/{data => config}/instruments.json | 0 backend/services/instrument_service.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename backend/{data => config}/instruments.json (100%) diff --git a/backend/data/instruments.json b/backend/config/instruments.json similarity index 100% rename from backend/data/instruments.json rename to backend/config/instruments.json diff --git a/backend/services/instrument_service.py b/backend/services/instrument_service.py index 7809547..e59255b 100644 --- a/backend/services/instrument_service.py +++ b/backend/services/instrument_service.py @@ -15,7 +15,7 @@ from datetime import datetime, date logger = logging.getLogger(__name__) # ── Config loading ───────────────────────────────────────────────────────────── -CONFIG_PATH = Path(__file__).parent.parent / "data" / "instruments.json" +CONFIG_PATH = Path(__file__).parent.parent / "config" / "instruments.json" _configs: Optional[Dict[str, Any]] = None # In-memory narrative cache: key = (instrument_id, iso_date) → str