Skip to content

Commit

Permalink
fix: add order for snapshots abck
Browse files Browse the repository at this point in the history
  • Loading branch information
tuneerroy committed Nov 6, 2023
1 parent 08390c5 commit 196286f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/laundry/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def get_snapshot_info(hall_id):
new_end = new_start + datetime.timedelta(hours=27)
filter |= Q(date__gt=new_start, date__lt=new_end)

snapshots = LaundrySnapshot.objects.filter(filter)
snapshots = LaundrySnapshot.objects.filter(filter).order_by("-date")
return (room, snapshots)

def compute_usage(hall_id):
Expand Down

0 comments on commit 196286f

Please sign in to comment.