Bug #53596
ValueError: not enough values to unpack (expected 2, got 0)
Statut:
Fermé
Priorité:
Bas
Assigné à:
-
Version cible:
-
Début:
30 avril 2021
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/44825/
ValueError: not enough values to unpack (expected 2, got 0) (2 additional frame(s) were not displayed) ... File "django/core/handlers/base.py", line 185, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "combo/apps/dataviz/views.py", line 45, in dataviz_graph height=int(request.GET['height']) if request.GET.get('height') else int(cell.height), File "combo/apps/dataviz/models.py", line 323, in get_chart data = self.process_one_dimensional_data(chart, data) File "combo/apps/dataviz/models.py", line 457, in process_one_dimensional_data data = self.sort_values(chart, data) File "combo/apps/dataviz/models.py", line 479, in sort_values x_labels, sorted_data = zip(*[(label, value) for label, value in tmp_items])
Fichiers
Révisions associées
Historique
Mis à jour par Lauréline Guérin il y a environ 3 ans
- Fichier 0001-dataviz-fix-sorting-when-data-is-empty-53596.patch 0001-dataviz-fix-sorting-when-data-is-empty-53596.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Valentin Deniaud il y a presque 3 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Lauréline Guérin il y a presque 3 ans
- Statut changé de Solution validée à Résolu (à déployer)
- Assigné à
Lauréline Guérinsupprimé - Priorité changé de Normal à Bas
commit d9e1b61ecbcfa5532e585122f46f44975f6d214a Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Fri Apr 30 16:30:02 2021 +0200 dataviz: fix sorting when data is empty (#53596)
Mis à jour par Frédéric Péters il y a presque 3 ans
- Statut changé de Résolu (à déployer) à Solution déployée
dataviz: fix sorting when data is empty (#53596)