Remove filtering when recursively searching with tags
This commit is contained in:
@@ -67,12 +67,6 @@ pub async fn list_photos<TagD: TagDao, FS: FileSystemAccess>(
|
|||||||
"Failed to get files with tag_ids: {:?} with filter_mode: {:?}",
|
"Failed to get files with tag_ids: {:?} with filter_mode: {:?}",
|
||||||
tag_ids, filter_mode
|
tag_ids, filter_mode
|
||||||
))
|
))
|
||||||
.map(|files| {
|
|
||||||
files
|
|
||||||
.into_iter()
|
|
||||||
.filter(|file_path| file_path.starts_with(search_path))
|
|
||||||
.collect()
|
|
||||||
})
|
|
||||||
.map(|tagged_files: Vec<String>| {
|
.map(|tagged_files: Vec<String>| {
|
||||||
trace!("Found {:?} tagged files: {:?}", tagged_files.len(), tagged_files);
|
trace!("Found {:?} tagged files: {:?}", tagged_files.len(), tagged_files);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user