done
This commit is contained in:
+2
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user