Skip to content

Commit

Permalink
work plan - sort phases based on ID instead of sort order
Browse files Browse the repository at this point in the history
  • Loading branch information
salabh-aot committed Nov 3, 2023
1 parent 23114bb commit 5e3332f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion epictrack-api/src/api/services/work_phase.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def find_by_work_id(cls, work_id: int):
db.session.query(WorkPhase)
.join(PhaseCode, WorkPhase.phase_id == PhaseCode.id)
.filter(WorkPhase.work_id == work_id, WorkPhase.is_active.is_(True))
.order_by(PhaseCode.sort_order)
.order_by(PhaseCode.id)
.all()
)
return work_phases
Expand Down

0 comments on commit 5e3332f

Please sign in to comment.