Bug #45999
dataviz, '<' not supported between instances of 'NoneType' and 'NoneType'
Début:
21 août 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
File "/usr/lib/python3/dist-packages/combo/apps/dataviz/views.py" in dataviz_graph 45. height=int(request.GET['height']) if request.GET.get('height') else int(cell.height) File "/usr/lib/python3/dist-packages/combo/apps/dataviz/models.py" in get_chart 253. tmp_items = sorted(zip(x_labels, data), key=lambda x: x[1]) Exception Type: TypeError at /api/dataviz/graph/35/ Exception Value: '<' not supported between instances of 'NoneType' and 'NoneType' avec: {'axis': {'y_labels': ['Associations', 'Contactez-nous', 'Culture / Loisirs', 'Emploi', 'Entreprises', 'Famille', 'Formation', 'Formation administrateur fonctionnel', 'Formation agent instructeur', 'Formation au développement de connecteurs', 'Interventions / signalements', 'OL', 'Papiers / Citoyenneté', 'Principauté de Monaco', 'Propreté', 'RSA CD13', 'Santé / Social', 'Sécurité', 'Séniors', 'Signalement Grand Lyon', 'Titres de navigation', 'Transports', 'Aucun(e)']}, 'data': [None, None, None, None, None, None, 3438985.333333, 0.0, None, None, None, None, None, None, None, None, None, None, 17.0, None, None, None, 25106326.421053], 'format': '1', 'measure': 'duration', 'unit': 'seconds'}
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Fichier 0001-dataviz-treat-null-values-as-zero-when-sorting-on-va.patch 0001-dataviz-treat-null-values-as-zero-when-sorting-on-va.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Benjamin Dauvergne il y a plus de 3 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 593ba9166928ed925c6aeb5fc2842b4b38e69d66 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Fri Aug 21 12:32:05 2020 +0200 dataviz: treat null values as zero when sorting on values (#45999)
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Statut changé de Résolu (à déployer) à Solution déployée
dataviz: treat null values as zero when sorting on values (#45999)