From 4a7bd9b400cb560312e8163752e3f5422c7f8c20 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Thu, 11 Dec 2014 15:43:32 -0200 Subject: [PATCH] Correct sintaxe error --- sigi/apps/saberes/management/commands/get_moodle_stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sigi/apps/saberes/management/commands/get_moodle_stats.py b/sigi/apps/saberes/management/commands/get_moodle_stats.py index 7ba7e45..2149ee7 100644 --- a/sigi/apps/saberes/management/commands/get_moodle_stats.py +++ b/sigi/apps/saberes/management/commands/get_moodle_stats.py @@ -48,7 +48,7 @@ class Command(BaseCommand): total_matriculas = sum(x['total_users'] for k, x in data.items()) else: total_matriculas = CourseStats.objects.filter(category__in=ci.categorias(subcategorias=True)). \ - aggreate(total_users=Sum('usercount'))['total_users'] + aggregate(total_users=Sum('usercount'))['total_users'] dados = [{'descricao': _(u'Total de matrĂ­culas'), 'valor': total_matriculas}]