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

This commit is contained in:
Leo Vasanko
2026-02-04 23:55:05 +00:00
parent 82062d1d7a
commit 204a308396
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)
class CachedPreview:
"""Cached preview with headers and body."""
headers: dict[str, str]
body: bytes
+1
View File
@@ -221,6 +221,7 @@ export const useMainStore = defineStore('main', {
name: doc.name,
key: doc.key,
size: doc.size,
allocated: doc.allocated,
mtime: doc.mtime,
dir: doc.dir,
}))
+1
View File
@@ -6,6 +6,7 @@ interface DocData {
name: string
key: string
size: number
allocated: number
mtime: number
dir: boolean
}