Feat: add advanced document filter (#8723)

### What problem does this PR solve?

Add advanced document filter

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Yongteng Lei
2025-07-09 09:33:11 +08:00
committed by GitHub
parent f7af0fc71e
commit c1f6e6f00e
6 changed files with 109 additions and 3 deletions

View File

@ -17,6 +17,7 @@ import logging
import os
import re
from concurrent.futures import ThreadPoolExecutor
from pathlib import Path
from flask_login import current_user
from peewee import fn
@ -446,6 +447,7 @@ class FileService(CommonService):
"created_by": user_id,
"type": filetype,
"name": filename,
"suffix": Path(filename).suffix.lstrip("."),
"location": location,
"size": len(blob),
"thumbnail": thumbnail_location,