Skip to content

Commit

Permalink
Merge pull request #401 from aestoltm/#378-Fix-updating-of-status-on-…
Browse files Browse the repository at this point in the history
…expiration

Fixed allocation expiration task bug
  • Loading branch information
aebruno authored Jun 14, 2022
2 parents 508f08b + cc101e3 commit f5245d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coldfront/core/allocation/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def update_statuses():
expired_status_choice = AllocationStatusChoice.objects.get(
name='Expired')
allocations_to_expire = Allocation.objects.filter(
status__name='Active', end_date__lt=datetime.datetime.now().date())
status__name__in=['Active','Payment Pending','Payment Requested', 'Unpaid',], end_date__lt=datetime.datetime.now().date())
for sub_obj in allocations_to_expire:
sub_obj.status = expired_status_choice
sub_obj.save()
Expand Down

0 comments on commit f5245d3

Please sign in to comment.