mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-27 01:14:43 +01:00
Fix memory album showing files out of the included dirs
This commit is contained in:
parent
40203bbdbc
commit
65a6ec84e7
1 changed files with 5 additions and 0 deletions
|
@ -400,6 +400,11 @@ class FileSqliteDbDataSource implements FileDataSource {
|
|||
final query = db.queryFiles().run((q) {
|
||||
q.setQueryMode(sql.FilesQueryMode.completeFile);
|
||||
q.setAppAccount(account);
|
||||
for (final r in account.roots) {
|
||||
if (r.isNotEmpty) {
|
||||
q.byOrRelativePathPattern("$r/%");
|
||||
}
|
||||
}
|
||||
return q.build();
|
||||
});
|
||||
final dateTime = db.accountFiles.bestDateTime.secondsSinceEpoch;
|
||||
|
|
Loading…
Add table
Reference in a new issue