Projet

Général

Profil

0001-myspace-compare-date-using-their-ordinal-value-39268.patch

Frédéric Péters, 27 janvier 2020 09:52

Télécharger (912 octets)

Voir les différences:

Subject: [PATCH] myspace: compare date using their ordinal value (#39268)

 auquotidien/modules/myspace.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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
57
-