Skip to content

Commit

Permalink
Added call to iter
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersSeverinsen committed Apr 22, 2024
1 parent 173546a commit 0c7f7ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bartenders/management/commands/generate_deposit_shifts.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ class Command(BaseCommand):
def handle(self, *args, **options):
board_members = set(b for b in Bartender.objects.all() if b.isBoardMember)

deposit_shifts = set(s for s in BoardMemberDepositShift.objects.all() if s.start_date)
for shift in deposit_shifts:
for shift in iter(BoardMemberDepositShift.objects.all()):
first_shift = shift

assert first_shift != None
Expand Down

0 comments on commit 0c7f7ae

Please sign in to comment.