π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Small change
laurenspriem9251fd819607
diff --git a/mobile/lib/services/machine_learning/face_ml/face_ml_service.dart b/mobile/lib/services/machine_learning/face_ml/face_ml_service.dartindex d642b63636..60978e826e 100644--- a/mobile/lib/services/machine_learning/face_ml/face_ml_service.dart+++ b/mobile/lib/services/machine_learning/face_ml/face_ml_service.dart@@ -1412,6 +1412,18 @@ class FaceMlService {Future<double> _getIndexedDoneRatio() async {final w = (kDebugMode ? EnteWatch('_getIndexedDoneRatio') : null)?..start();++ final int alreadyIndexedCount = await FaceMLDataDB.instance+ .getIndexedFileCount(minimumMlVersion: faceMlVersion);+ final int totalIndexableCount = await getIndexableFilesCount();+ final ratio = alreadyIndexedCount / totalIndexableCount;++ w?.log('getIndexedDoneRatio');++ return ratio;+ }++ Future<int> getIndexableFilesCount() async {final List<EnteFile> enteFiles = await SearchService.instance.getAllFiles();final List<EnteFile> indexableFiles = [];for (final enteFile in enteFiles) {@@ -1423,14 +1435,7 @@ class FaceMlService {}indexableFiles.add(enteFile);}-- final int alreadyIndexedCount = await FaceMLDataDB.instance- .getIndexedFileCount(minimumMlVersion: faceMlVersion);- final int totalIndexableCount = indexableFiles.length;- final ratio = alreadyIndexedCount / totalIndexableCount;- w?.log('getIndexedDoneRatio');-- return ratio;+ return indexableFiles.length;}bool _skipAnalysisEnteFile(EnteFile enteFile, Map<int, int> indexedFileIds) {