Pass the new allocated field through search filtering. Fixes issue where 0 allocated was reported in search results.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
}))
|
}))
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user