quick fix

This commit is contained in:
2026-01-12 20:30:59 +01:00
parent bf01724b3e
commit 743bed67f3
16 changed files with 146 additions and 102 deletions

View File

@@ -3,7 +3,7 @@
import json
import logging
import random
from datetime import datetime
from datetime import datetime, timezone
from sqlalchemy import select
from sqlalchemy.ext.asyncio import AsyncSession
@@ -311,7 +311,7 @@ Return ONLY the JSON array, no other text."""
confidence=fact_data.get("confidence", 0.8),
source="auto_extraction",
is_active=True,
learned_at=datetime.utcnow(),
learned_at=datetime.now(timezone.utc),
# New fields from Living AI
category=fact_data["type"],
importance=fact_data.get("importance", 0.5),