From 588d240ddcf77e26cb7857ebd53864473dadc701 Mon Sep 17 00:00:00 2001 From: giles Date: Sun, 1 Mar 2026 23:29:26 +0000 Subject: [PATCH] Fix backfill script imports to match actual module paths Co-Authored-By: Claude Opus 4.6 --- blog/scripts/backfill_sx_content.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/blog/scripts/backfill_sx_content.py b/blog/scripts/backfill_sx_content.py index b1910cb..9fb9206 100644 --- a/blog/scripts/backfill_sx_content.py +++ b/blog/scripts/backfill_sx_content.py @@ -16,15 +16,14 @@ from sqlalchemy.ext.asyncio import AsyncSession async def backfill(dry_run: bool = False) -> int: - from shared.db.sessions import get_session_factory - from blog.models.content import Post - from blog.bp.blog.ghost.lexical_to_sx import lexical_to_sx + from shared.db.session import get_session + from models.ghost_content import Post + from bp.blog.ghost.lexical_to_sx import lexical_to_sx - session_factory = get_session_factory("blog") converted = 0 errors = 0 - async with session_factory() as sess: + async with get_session() as sess: stmt = select(Post).where( and_( Post.lexical.isnot(None),