Pass the new allocated field through search filtering. Fixes issue where 0 allocated was reported in search results.

This commit is contained in:
2026-02-04 23:55:05 +00:00
parent f40d9c1abd
commit f578a50007
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -31,6 +31,7 @@ bp = Blueprint("preview", url_prefix="/preview")
@dataclass(slots=True) @dataclass(slots=True)
class CachedPreview: class CachedPreview:
"""Cached preview with headers and body.""" """Cached preview with headers and body."""
headers: dict[str, str] headers: dict[str, str]
body: bytes body: bytes
+1
View File
@@ -221,6 +221,7 @@ export const useMainStore = defineStore('main', {
name: doc.name, name: doc.name,
key: doc.key, key: doc.key,
size: doc.size, size: doc.size,
allocated: doc.allocated,
mtime: doc.mtime, mtime: doc.mtime,
dir: doc.dir, dir: doc.dir,
})) }))
+1
View File
@@ -6,6 +6,7 @@ interface DocData {
name: string name: string
key: string key: string
size: number size: number
allocated: number
mtime: number mtime: number
dir: boolean dir: boolean
} }