fixed os global search query
This commit is contained in:
parent
c5a0b7a149
commit
2ca6447c1e
1 changed files with 2 additions and 2 deletions
|
@ -220,8 +220,8 @@ class SqfliteMetadataDb implements MetadataDb {
|
|||
Future<Set<AvesEntry>> searchLiveEntries(String query, {int? limit}) async {
|
||||
final rows = await _db.query(
|
||||
entryTable,
|
||||
where: 'title LIKE ? AND trashed = ?',
|
||||
whereArgs: ['%$query%', 0],
|
||||
where: '(title LIKE ? OR path LIKE ?) AND trashed = ?',
|
||||
whereArgs: ['%$query%', '%$query%', 0],
|
||||
orderBy: 'sourceDateTakenMillis DESC',
|
||||
limit: limit,
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue