Browse Source

Correct sintaxe error

producao
Marcio Mazza 10 years ago
parent
commit
4a7bd9b400
  1. 2
      sigi/apps/saberes/management/commands/get_moodle_stats.py

2
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()) total_matriculas = sum(x['total_users'] for k, x in data.items())
else: else:
total_matriculas = CourseStats.objects.filter(category__in=ci.categorias(subcategorias=True)). \ 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}] dados = [{'descricao': _(u'Total de matrículas'), 'valor': total_matriculas}]

Loading…
Cancel
Save