Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-li committed Jan 24, 2024
2 parents 05e24e5 + 2703c94 commit 5687e20
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@

import logging

"""An admin command that ensures that all users across all projects are
allocated the same number of service units as the project."""
"""An admin command that ensures that all users across all active
projects are allocated the same number of service units as the
project."""


class Command(BaseCommand):

help = (
'Across all projects, ensure that the number of service units '
'allocated to each user is equal to that of the project.')
'Across all active projects, ensure that the number of service '
'units allocated to each user is equal to that of the project.')

logger = logging.getLogger(__name__)

Expand All @@ -35,7 +36,7 @@ def add_arguments(self, parser):

def handle(self, *args, **options):
dry_run = options['dry_run']
for project in Project.objects.all():
for project in Project.objects.filter(status__name='Active'):
self._handle_project(project, dry_run)

def _handle_discrepant_user_attribute(self, project, user, allocation_user,
Expand Down

0 comments on commit 5687e20

Please sign in to comment.