Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added '*' in front of users who are present in frozen users list for… #76

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions backend/workspaces/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
Loading