Projet

Général

Profil

Bug #39268

tri facture myspace bad operand type for unary -: 'datetime.datetime

Ajouté par Frédéric Péters il y a environ 4 ans. Mis à jour il y a environ 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
27 janvier 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Exception:
  type = '<type 'exceptions.TypeError'>', value = 'bad operand type for unary -: 'datetime.datetime''

Stack trace (most recent call first):
  File "/usr/lib/python2.7/dist-packages/auquotidien/modules/myspace.py", line 53, in <lambda>
    51         invoices.extend(Invoice.get_with_indexed_value(
    52             str('user_id'), str(user.id)))
>   53         invoices.sort(key=lambda x: (x.regie_id, -x.date))
    54
    55         last_regie_id = None

  locals:
     x = <Invoice id:20171127-r1-f121-12510-95>

  File "/usr/lib/python2.7/dist-packages/auquotidien/modules/myspace.py", line 53, in _q_index
    51         invoices.extend(Invoice.get_with_indexed_value(
    52             str('user_id'), str(user.id)))
>   53         invoices.sort(key=lambda x: (x.regie_id, -x.date))
    54
    55         last_regie_id = None

Fichiers

Révisions associées

Révision 6d42dae9 (diff)
Ajouté par Frédéric Péters il y a environ 4 ans

myspace: compare date using their ordinal value (#39268)

Révision 375d2b5a (diff)
Ajouté par Frédéric Péters il y a environ 4 ans

myspace: compare date using their ordinal value (#39268)

Historique

#1

Mis à jour par Frédéric Péters il y a environ 4 ans

#2

Mis à jour par Frédéric Péters il y a environ 4 ans

(appliqué sur la prod)

#3

Mis à jour par Thomas Noël il y a environ 4 ans

  • Statut changé de Solution proposée à Solution validée
#4

Mis à jour par Frédéric Péters il y a environ 4 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 6d42dae95b210b40932f16ec793633abd9ea88bf
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Mon Jan 27 09:52:04 2020 +0100

    myspace: compare date using their ordinal value (#39268)
#5

Mis à jour par Frédéric Péters il y a environ 4 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF