mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +01:00
Fix dirs wrongly returning from queryFileDescriptors
This commit is contained in:
parent
97b3e99aa7
commit
d90dc436fe
1 changed files with 2 additions and 0 deletions
|
@ -459,6 +459,8 @@ extension SqliteDbFileExtension on SqliteDb {
|
||||||
}
|
}
|
||||||
if (mimes != null) {
|
if (mimes != null) {
|
||||||
query.where(files.contentType.isIn(mimes));
|
query.where(files.contentType.isIn(mimes));
|
||||||
|
} else {
|
||||||
|
query.where(files.isCollection.isNotValue(true));
|
||||||
}
|
}
|
||||||
for (final k in relativePathKeywords ?? const []) {
|
for (final k in relativePathKeywords ?? const []) {
|
||||||
query.where(accountFiles.relativePath.like("%$k%"));
|
query.where(accountFiles.relativePath.like("%$k%"));
|
||||||
|
|
Loading…
Reference in a new issue