Skip to content

Commit

Permalink
removed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
asaki222 committed Dec 20, 2024
1 parent ffd6a1a commit 31286b5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/registrar/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,6 @@ def get_active_requests_count(self):
active_requests_count = self.domain_requests_created.filter(status__in=allowed_states).count()
return active_requests_count

# If this is causing performance problems,
# convert the is expiring check to sum or count filter condition
def get_num_expiring_domains(self, request):
"""Return number of expiring domains"""
domain_ids = self.get_user_domain_ids(request)
Expand All @@ -179,7 +177,6 @@ def get_num_expiring_domains(self, request):
expiration_date__lte=threshold_date,
expiration_date__gt=now
).count()
print(num_of_expiring_domains)
return num_of_expiring_domains


Expand Down

0 comments on commit 31286b5

Please sign in to comment.