Fix backfill script imports to match actual module paths

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-01 23:29:26 +00:00
parent aa5c251a45
commit 588d240ddc

View File

@@ -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),