Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob] Remove debug code

Neeraj Guptaef03c6f40a8c
diff --git a/mobile/lib/face/db.dart b/mobile/lib/face/db.dart
index eaf90962b3..7f1053d7f4 100644
--- a/mobile/lib/face/db.dart
+++ b/mobile/lib/face/db.dart
@@ -206,7 +206,7 @@ class FaceMLDataDB {
Future<Face?> getCoverFaceForPerson({
required int recentFileID,
String? personID,
- String? personAvatorFaceID,
+ String? avatarFaceId,
int? clusterID,
}) async {
// read person from db
@@ -214,8 +214,8 @@ class FaceMLDataDB {
if (personID != null) {
final List<int> fileId = [recentFileID];
int? avatarFileId;
- if (personAvatorFaceID != null) {
- avatarFileId = int.tryParse(personAvatorFaceID!.split('_')[0]);
+ if (avatarFaceId != null) {
+ avatarFileId = int.tryParse(avatarFaceId!.split('_')[0]);
if (avatarFileId != null) {
fileId.add(avatarFileId);
}
@@ -253,14 +253,6 @@ class FaceMLDataDB {
whereArgs: [clusterID],
);
final List<Face>? faces = await getFacesForGivenFileID(recentFileID);
-
- if (clusterID == 1711967560179) {
- debugPrint("faces: $faces");
- if (faces != null) {
- debugPrint("faces: ${faces!.map((e) => e.faceID).toList()}");
- }
- debugPrint('faceMaps $faceMaps');
- }
if (faces != null) {
for (final face in faces) {
if (faceMaps
diff --git a/mobile/lib/ui/viewer/search/result/person_face_widget.dart b/mobile/lib/ui/viewer/search/result/person_face_widget.dart
index d0ee35e8e2..fe2732c4ec 100644
--- a/mobile/lib/ui/viewer/search/result/person_face_widget.dart
+++ b/mobile/lib/ui/viewer/search/result/person_face_widget.dart
@@ -93,7 +93,7 @@ class PersonFaceWidget extends StatelessWidget {
}
return await FaceMLDataDB.instance.getCoverFaceForPerson(
recentFileID: file.uploadedFileID!,
- personAvatorFaceID: personAvatarFaceID,
+ avatarFaceId: personAvatarFaceID,
personID: personId,
clusterID: clusterID,
);