This commit is contained in:
aaron 2026-04-16 23:49:04 +08:00
parent 7d0ede2912
commit 26624b00d0
9 changed files with 56 additions and 9 deletions

View File

@ -426,7 +426,7 @@ async def _save_to_db(result: dict):
# 保存推荐(按 ts_code 清除当日旧记录,避免同一天多次扫描产生重复)
today_str = datetime.now().strftime("%Y-%m-%d")
now_ts = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
now_dt = datetime.now()
saved_count = 0
for rec in result.get("recommendations", []):
if rec.score < 60:
@ -458,7 +458,7 @@ async def _save_to_db(result: dict):
entry_signal_type=rec.entry_signal_type,
llm_score=rec.llm_score,
scan_session=rec.scan_session,
created_at=now_ts,
created_at=now_dt,
)
await db.execute(stmt)
saved_count += 1

Binary file not shown.

View File

@ -1,3 +1,25 @@
{
"pages": {}
"pages": {
"/(auth)/recommendations/page": [
"static/chunks/webpack.js",
"static/chunks/main-app.js",
"static/chunks/app/(auth)/recommendations/page.js"
],
"/(auth)/layout": [
"static/chunks/webpack.js",
"static/chunks/main-app.js",
"static/chunks/app/(auth)/layout.js"
],
"/layout": [
"static/chunks/webpack.js",
"static/chunks/main-app.js",
"static/css/app/layout.css",
"static/chunks/app/layout.js"
],
"/(auth)/dashboard/page": [
"static/chunks/webpack.js",
"static/chunks/main-app.js",
"static/chunks/app/(auth)/dashboard/page.js"
]
}
}

View File

@ -8,7 +8,10 @@
"static/development/_buildManifest.js",
"static/development/_ssgManifest.js"
],
"rootMainFiles": [],
"rootMainFiles": [
"static/chunks/webpack.js",
"static/chunks/main-app.js"
],
"pages": {
"/_app": []
},

View File

@ -1 +1,4 @@
{}
{
"/(auth)/recommendations/page": "app/(auth)/recommendations/page.js",
"/(auth)/dashboard/page": "app/(auth)/dashboard/page.js"
}

View File

@ -5,7 +5,10 @@ self.__BUILD_MANIFEST = {
"devFiles": [],
"ampDevFiles": [],
"lowPriorityFiles": [],
"rootMainFiles": [],
"rootMainFiles": [
"static/chunks/webpack.js",
"static/chunks/main-app.js"
],
"pages": {
"/_app": []
},

View File

@ -1,5 +1,5 @@
{
"node": {},
"edge": {},
"encryptionKey": "TvpNgjmx7YLTcpuR9/rx1RyNnHAsQtr+fCBhzhbdwwo="
"encryptionKey": "ENqzQP8wBFubYL1/ouTvw/MyHD/YS9oWsYiV09Obmq8="
}

File diff suppressed because one or more lines are too long