Skip to content

Commit

Permalink
Merge pull request #1080 from AI4Bharat/payment_report/workspace
Browse files Browse the repository at this point in the history
added '*' in front of users who are marked inactive and present in fr…
  • Loading branch information
ishvindersethi22 authored Sep 23, 2024
2 parents 8ef29a1 + 0cb7080 commit af3243c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions backend/workspaces/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3239,6 +3239,15 @@ def send_user_analytics(self, request, pk=None):

project_type = request.data.get("project_type")

inactive_users = User.objects.filter(id=user_id, is_active=False)
frozen_users = workspace.frozen_users.all()

for inactive_user in inactive_users:
inactive_user.username = "*" + inactive_user.username

for frozen_user in frozen_users:
frozen_user.username = "*" + frozen_user.username

send_user_reports_mail_ws.delay(
ws_id=workspace.id,
user_id=user_id,
Expand Down

0 comments on commit af3243c

Please sign in to comment.