This commit is contained in:
k
2026-04-21 19:33:24 +08:00
parent 9a72566753
commit 3268080401
26 changed files with 1816 additions and 318 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ from datetime import datetime, timezone
from fastapi import APIRouter, BackgroundTasks, Depends
from sqlalchemy.ext.asyncio import AsyncSession
from app.database import get_db, AsyncSessionLocal
from app.models import Post
from app.models import Post, iso_utc
from app.ws.manager import manager
import hashlib, time
@@ -45,7 +45,7 @@ async def insert_fake_post(
"id": post.id,
"text": post.text,
"source": post.source,
"published_at": post.published_at.isoformat(),
"published_at": iso_utc(post.published_at),
"sentiment": post.sentiment,
"ai_confidence": post.ai_confidence,
"relevant": post.relevant,