myspace: compare date using their ordinal value (#39268)
This commit is contained in:
parent
bb8a29bdc8
commit
375d2b5ac1
|
@ -50,7 +50,7 @@ class MyInvoicesDirectory(Directory):
|
|||
invoices = []
|
||||
invoices.extend(Invoice.get_with_indexed_value(
|
||||
str('user_id'), str(user.id)))
|
||||
invoices.sort(key=lambda x: (x.regie_id, -x.date))
|
||||
invoices.sort(key=lambda x: (x.regie_id, -x.date.toordinal()))
|
||||
|
||||
last_regie_id = None
|
||||
unpaid = False
|
||||
|
|
Reference in New Issue