Skip to content

Commit

Permalink
Order schedule csv download by start time (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimasciput authored Jan 22, 2024
1 parent 6eabd24 commit 494c0e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schedule/api_views/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ class ScheduleCSVExport(APIView):
def get(self, request, project_id, user_id=None):
schedules = Schedule.objects.filter(
user_project__project_id=project_id,
)
).order_by('start_time')
if user_id:
schedules = schedules.filter(
user_project__user_id=user_id
Expand Down

0 comments on commit 494c0e7

Please sign in to comment.