main #7

Merged
admin merged 620 commits from main into dev 2026-03-29 13:03:25 +00:00
Showing only changes of commit 6c570acfe6 - Show all commits

View File

@@ -83,7 +83,7 @@ class AutomationDocument(ModelSQL, ModelView, Workflow):
doc.state = "ocr_done"
doc.notes = (doc.notes or "") + "OCR done\n"
else:
doc.ocr_text = (file_data or b'').decode('utf-8', errors='replace')
doc.ocr_text = (doc.document.data or b"").decode('utf-8', errors='replace')
except Exception as e:
doc.state = "error"