Project

General

Profile

« Previous | Next » 

Revision 80bdfd4a

Added by Mikaël Ates over 10 years ago

statistics: order act rows in act synthesis table.

View differences:

calebasse/statistics/statistics.py
1374 1374
    data = []
1375 1375
    data.append(["Types des actes", "Nombre d'actes proposés", "Nombre de dossiers", "Nombre d'actes réalisés", "Nombre de dossiers"])
1376 1376
    values = []
1377
    for act_type, acts in acts_types.iteritems():
1377
    for act_type, acts in sorted(acts_types.items(), key=lambda t: t[0].name):
1378 1378
        values.append((act_type, len(acts), len(set([a.patient.id for a in acts])), len([a for a in acts if a.is_present()]), len(set([a.patient.id for a in acts if a.is_present()]))))
1379 1379
    data.append(values)
1380 1380
    data_tables.append(data)

Also available in: Unified diff