Sort the event log correctly

This commit is contained in:
AndyGrant committed 2018-06-24 10:47:40 -04:00
1 parent b292cac317
commit f769246119
1 file changed
+1 -1
+1 -1
View File
@@ -175,7 +175,7 @@ def machines(request):
def eventLog(request, page=0, pageLength=50):
# Choose events within the given page, if any
events = LogEvent.objects.all()
events = LogEvent.objects.all().order_by('-id')
items = len(events)
start = page * pageLength
end = start + pageLength