Projet

Général

Profil

Bug #39973

factures, myspace, unorderable types: int() < str()

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:
18 février 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Exception:
  type = '<class 'TypeError'>', value = 'unorderable types: int() < str()'

Stack trace (most recent call first):
  File "/usr/lib/python3/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.toordinal()))
    54
    55         last_regie_id = None

Fichiers

Révisions associées

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

myspace: always consider regie id as a string (#39973)

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

myspace: always consider regie id as a string (#39973)

Historique

#1

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

#2

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

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

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

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

(Pour info manuellement posé sur le SaaS de prod)

commit 3b541fb895b0d27064bb6b108fbb340971323cb7
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Tue Feb 18 11:17:12 2020 +0100

    myspace: always consider regie id as a string (#39973)
#4

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