diff --git a/backend/workspaces/views.py b/backend/workspaces/views.py index 4bccc161..a2ca223a 100644 --- a/backend/workspaces/views.py +++ b/backend/workspaces/views.py @@ -1362,6 +1362,7 @@ def user_analytics(self, request, pk=None): users_id = [user.id for user in ws.members.all()] selected_language = "-" + frozen_user = [user.username for user in ws.frozen_users.all()] final_reports = [] for index, each_annotation_user in enumerate(users_id): name = user_name[index] @@ -1544,7 +1545,7 @@ def user_analytics(self, request, pk=None): and project_progress_stage > ANNOTATION_STAGE ): result = { - "Annotator": name, + "Annotator": "*" + name if name in frozen_user else name, "Email": email, "Language": selected_language, "No.of Projects": project_count, @@ -1566,7 +1567,7 @@ def user_analytics(self, request, pk=None): } else: result = { - "Annotator": name, + "Annotator": "*" + name if name in frozen_user else name, "Email": email, "Language": selected_language, "No.of Projects": project_count,