átlagos kiegészítséek jó sok
This commit is contained in:
@@ -9,7 +9,7 @@ from fastapi import UploadFile, BackgroundTasks, HTTPException
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
from sqlalchemy import select, func, and_
|
||||
|
||||
from app.models.document import Document
|
||||
from app.models import Document
|
||||
from app.models.identity import User
|
||||
from app.services.config_service import config # 2.0 Dinamikus beállítások
|
||||
from app.workers.ocr.robot_1_ocr_processor import OCRRobot # Robot 1 hívása
|
||||
@@ -122,7 +122,7 @@ class DocumentService:
|
||||
if doc_type in auto_ocr_types:
|
||||
# Robot 1 (OCR) sorba állítása háttérfolyamatként
|
||||
background_tasks.add_task(OCRRobot.process_document, db, new_doc.id)
|
||||
new_doc.status = "processing"
|
||||
new_doc.status = "pending_ocr"
|
||||
logger.info(f"🤖 Robot 1 (OCR) riasztva: {new_doc.id}")
|
||||
|
||||
await db.commit()
|
||||
|
||||
Reference in New Issue
Block a user