Révision 6d42dae9
Ajouté par Frédéric Péters il y a plus de 4 ans
auquotidien/modules/myspace.py | ||
---|---|---|
50 | 50 |
invoices = [] |
51 | 51 |
invoices.extend(Invoice.get_with_indexed_value( |
52 | 52 |
str('user_id'), str(user.id))) |
53 |
invoices.sort(key=lambda x: (x.regie_id, -x.date)) |
|
53 |
invoices.sort(key=lambda x: (x.regie_id, -x.date.toordinal()))
|
|
54 | 54 |
|
55 | 55 |
last_regie_id = None |
56 | 56 |
unpaid = False |
Formats disponibles : Unified diff
myspace: compare date using their ordinal value (#39268)