Merge branch 'refactor/backend-architecture' into development

This commit is contained in:
yangshilin
2026-03-18 17:18:23 +08:00
parent 2070a03d35
commit 48b70e1350
266 changed files with 12386 additions and 9690 deletions

View File

@@ -7,7 +7,6 @@
python -m scripts.migrate_chapters_to_sections
"""
import json
import logging
import os
import sys
import uuid
@@ -15,11 +14,12 @@ import uuid
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from sqlalchemy import text
from database.database import engine
from services.memoir_images.parser import split_narrative_to_sections
from app.core.db import sync_engine as engine
from app.features.memoir.memoir_images.parser import split_narrative_to_sections
from app.core.logging import get_logger, setup_logging
logging.basicConfig(level=logging.INFO, format="%(message)s")
logger = logging.getLogger(__name__)
setup_logging()
logger = get_logger(__name__)
def run():