Skip to content

Commit

Permalink
clearer dto-> worfklow output adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdelgrosso committed Jul 25, 2023
1 parent 3a15954 commit c862a26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion course_attendance_service/workflows/get_workshops.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ def get_planned_workshop_and_session_details(self, workshop_id: str) -> PlannedW
workshop = self.get_planned_workshop_details(workshop_id=workshop_id)
sessions = []
for session_id in workshop.session_ids:
session = self.workshop_repo.get_session(session_id=session_id)
session_dto = self.workshop_repo.get_session(session_id=session_id)
session = PlannedSession(**session_dto._asdict())
sessions.append(session)

workshop_full = PlannedWorkshop(
Expand Down

0 comments on commit c862a26

Please sign in to comment.