feat: overhaul UI styling, improve templates, enhance services and tests
This commit is contained in:
@@ -31,6 +31,7 @@ def crawl(
|
||||
|
||||
# 确保数据库和表存在
|
||||
import os
|
||||
|
||||
os.makedirs(settings.db_path.parent, exist_ok=True)
|
||||
_init(engine)
|
||||
typer.echo(f"📡 开始抓取 {target} ...")
|
||||
@@ -63,6 +64,7 @@ def summarize(
|
||||
from app.services.summarizer import summarize_batch, summarize_single
|
||||
|
||||
import os
|
||||
|
||||
os.makedirs(settings.db_path.parent, exist_ok=True)
|
||||
_init(engine)
|
||||
|
||||
@@ -97,6 +99,7 @@ def init_db():
|
||||
from app.models import init_db as _init
|
||||
|
||||
import os
|
||||
|
||||
os.makedirs(settings.db_path.parent, exist_ok=True)
|
||||
_init(engine)
|
||||
typer.echo(f"✅ 数据库已初始化:{settings.db_path}")
|
||||
|
||||
Reference in New Issue
Block a user