From 61dc87aa5e637f698c723b2ac05d63c119801acf Mon Sep 17 00:00:00 2001 From: Ishan Gujarathi Date: Tue, 21 May 2024 16:30:50 +0530 Subject: [PATCH] added '*' in front of users who are present in frozen users list for woskapce reports --- backend/workspaces/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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,