Fakultas Ilmu Komputer UI

Commit 72e02342 authored by Jonathan Christopher Jakub's avatar Jonathan Christopher Jakub
Browse files

[REFACTOR] Sort Logs by recorded at

parent 78e29f11
Pipeline #41560 passed with stages
in 12 minutes and 9 seconds
......@@ -47,8 +47,8 @@ class LogAPIView(ListAPIView):
def get(self, request):
serializer_data = []
logs_querysets = self.get_queryset(request)
logs_querysets = sorted(logs_querysets, key=lambda x: x.recorded_at, reverse=True)
paginator = PageNumberPagination()
context = paginator.paginate_queryset(logs_querysets, request)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment