2
0
Fork 0

refactor(fallback): remove unused code

This commit is contained in:
Luca 2024-05-21 17:39:31 +02:00
parent f63f565ca6
commit e0f7320801
1 changed files with 0 additions and 3 deletions

View File

@ -72,9 +72,6 @@ class TeamMember(models.Model):
free_bucket = bucket.filter(fallback_count__lt=F("real_required_helpers"))
total_slot_count = bucket.aggregate(sum=Sum("real_required_helpers"))["sum"]
free_slot_count = free_bucket.annotate(
needed_helpers=F("real_required_helpers") - F("fallback_count")
).aggregate(sum=Sum("needed_helpers"))["sum"]
quota = global_preferences["helper__fallback_quota"]
number_of_team_members = TeamMember.objects.count()