From 421dbefdcff55ceab8c96a99086ff058bd459eb9 Mon Sep 17 00:00:00 2001 From: Corentin Chary Date: Thu, 21 Jul 2011 15:01:14 +0200 Subject: [PATCH] euscanwww: datetime is not indexed, id is Signed-off-by: Corentin Chary --- euscanwww/euscan/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/euscanwww/euscan/views.py b/euscanwww/euscan/views.py index ec9e85d..879efcf 100644 --- a/euscanwww/euscan/views.py +++ b/euscanwww/euscan/views.py @@ -21,7 +21,7 @@ def index(request): ctx['n_packages'] = Package.objects.count() ctx['n_herds'] = Herd.objects.count() ctx['n_maintainers'] = Maintainer.objects.count() - ctx['last_scan'] = EuscanResult.objects.aggregate(Max('datetime'))['datetime__max'] + ctx['last_scan'] = EuscanResult.objects.get(id=EuscanResult.objects.aggregate(Max('id'))['id__max']).datetime return ctx @render_to('euscan/logs.html')