Pārlūkot izejas kodu

Make sure that the file fetched for memories is not deleted

Vishnu Mohandas 5 gadi atpakaļ
vecāks
revīzija
e6b4619c52
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      lib/db/files_db.dart

+ 2 - 1
lib/db/files_db.dart

@@ -132,7 +132,8 @@ class FilesDB {
     final db = await instance.database;
     final results = await db.query(
       table,
-      where: '$columnCreationTime >= ? AND $columnCreationTime <= ?',
+      where:
+          '$columnCreationTime > ? AND $columnCreationTime < ? AND $columnIsDeleted = 0',
       whereArgs: [startCreationTime, endCreationTime],
       orderBy: '$columnCreationTime DESC',
     );