fix(views): resolve mypy TemplateResponse typing and owner fallback

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-06 10:47:46 +00:00
parent 7991ddb5bd
commit 575b4e088e
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -56,8 +56,9 @@ def process_document(
3. If force_cloud_ocr is True, skip local text extraction and use cloud OCR
"""
# Fall back to the configured default_owner_id when no explicit owner was provided
if owner_id is None and settings.default_owner_id:
owner_id = settings.default_owner_id
default_owner_id = settings.default_owner_id
if owner_id is None and isinstance(default_owner_id, str) and default_owner_id.strip():
owner_id = default_owner_id
task_id = self.request.id
logger.info(f"[{task_id}] Starting document processing: {original_local_file}")