Browse Source

[mob] Remove debug code

Neeraj Gupta 1 năm trước cách đây
mục cha
commit
ef03c6f40a

+ 3 - 11
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

+ 1 - 1
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,
     );