Skip to content

Commit

Permalink
event ordering issue (#1165)
Browse files Browse the repository at this point in the history
  • Loading branch information
dinesh-aot authored Nov 2, 2023
1 parent 07cbd40 commit 5fca051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion epictrack-api/src/api/services/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def _previous_event_acutal_date_rule(
)
)
phase_events = sorted(
phase_events, key=lambda x: x.id
phase_events, key=lambda x: x.actual_date or x.anticipated_date
)
event_index = -1
for index, item in enumerate(phase_events):
Expand Down

0 comments on commit 5fca051

Please sign in to comment.