freeze fix
This commit is contained in:
@@ -829,10 +829,10 @@ async def translate_run_websocket(websocket: WebSocket, run_id: str):
|
||||
try:
|
||||
from .core.database import SessionLocal
|
||||
from .plugins.translate.orchestrator_aggregator import TranslationResultAggregator
|
||||
from .core.event_log import EventLog
|
||||
from .plugins.translate.events import TranslationEventLog
|
||||
db = SessionLocal()
|
||||
try:
|
||||
event_log = EventLog(db)
|
||||
event_log = TranslationEventLog(db)
|
||||
aggregator = TranslationResultAggregator(db, event_log)
|
||||
status = aggregator.get_run_status(run_id)
|
||||
total = status.get("total_records", 0) or 0
|
||||
|
||||
Reference in New Issue
Block a user