π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob] Use sqlite async for getting total face count
laurenspriem642e36b050fa
diff --git a/mobile/lib/face/db.dart b/mobile/lib/face/db.dartindex b8c942a42c..62dc8f8f55 100644--- a/mobile/lib/face/db.dart+++ b/mobile/lib/face/db.dart@@ -498,8 +498,8 @@ class FaceMLDataDB {Future<int> getTotalFaceCount({double minFaceScore = kMinHighQualityFaceScore,}) async {- final db = await instance.database;- final List<Map<String, dynamic>> maps = await db.rawQuery(+ final db = await instance.sqliteAsyncDB;+ final List<Map<String, dynamic>> maps = await db.getAll('SELECT COUNT(*) as count FROM $facesTable WHERE $faceScore > $minFaceScore AND $faceBlur > $kLaplacianThreshold',);return maps.first['count'] as int;