Skip to content

Commit

Permalink
fix: Actually implement stepper.filled_slots
Browse files Browse the repository at this point in the history
  • Loading branch information
miggol committed Jan 8, 2025
1 parent da86b91 commit a11756d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion proposals/utils/pdf_diff_sections.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ def _all_slots_list(self, proposal):
from proposals.utils.stepper import Stepper

stepper = Stepper(proposal)
slots = [slot for slot in stepper.attachment_slots if slot.attachment]
slots = stepper.filled_slots

return slots

Expand Down
3 changes: 1 addition & 2 deletions reviews/utils/attachment_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,8 @@ def get_containers(
from proposals.utils.stepper import Stepper

stepper = Stepper(self.proposal)
filled_slots = [slot for slot in stepper.attachment_slots if slot.attachment]
containers = DocList(
filled_slots,
stepper.filled_slots,
proposal=self.proposal,
).as_containers()
return containers
Expand Down
2 changes: 1 addition & 1 deletion reviews/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ def get_slots(
):
proposal = self.get_review().proposal
stepper = Stepper(proposal)
return [slot for slot in stepper.attachment_slots if slot.attachment]
return stepper.filled_slots

def per_object(
self,
Expand Down

0 comments on commit a11756d

Please sign in to comment.