Skip to content

Commit

Permalink
Merge pull request #135 from AI4Bharat/Rahul-537
Browse files Browse the repository at this point in the history
  • Loading branch information
ishvindersethi22 authored Dec 27, 2024
2 parents b20f58e + 5e22ba9 commit ebf0a82
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions backend/organizations/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -967,11 +967,13 @@ def project_analytics(self, request, pk=None):
final_result = []
if projects_obj.count() != 0:
for proj in projects_obj:
proj_manager = [
manager.get_username()
for manager in proj.workspace_id.managers.all()
]
try:
proj_manager = []
if proj.workspace_id is not None:
proj_manager=[
manager.get_username()
for manager in proj.workspace_id.managers.all()
]
org_owner = proj.organization_id.created_by.get_username()
proj_manager.append(org_owner)
except:
Expand Down

0 comments on commit ebf0a82

Please sign in to comment.