1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-11-29 22:48:28 +02:00

Implementing listing metafiles in search result

This commit is contained in:
Patrik J. Braun
2021-06-19 11:20:40 +02:00
parent 57ac433c46
commit 3541eae141
18 changed files with 193 additions and 86 deletions

View File

@@ -200,6 +200,9 @@ describe('SearchManager', (sqlHelper: DBTestHelper) => {
delete m.directory.preview;
delete m.directory.metaFile;
const ret = Utils.clone(m);
delete ret.directory.lastScanned;
delete ret.directory.lastModified;
delete ret.directory.mediaCount;
if ((ret.metadata as PhotoMetadata).faces && !(ret.metadata as PhotoMetadata).faces.length) {
delete (ret.metadata as PhotoMetadata).faces;
}