Projet

Général

Profil

Bug #53596

ValueError: not enough values to unpack (expected 2, got 0)

Ajouté par Sentry Io il y a environ 3 ans. Mis à jour il y a presque 3 ans.

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

Révision d9e1b61e (diff)
Ajouté par Lauréline Guérin il y a presque 3 ans

dataviz: fix sorting when data is empty (#53596)

Historique

#1

Mis à jour par Lauréline Guérin il y a environ 3 ans

  • Projet changé de Suivi des traces à Combo
#2

Mis à jour par Lauréline Guérin il y a environ 3 ans

  • Assigné à mis à Lauréline Guérin
#3

Mis à jour par Lauréline Guérin il y a environ 3 ans

#4

Mis à jour par Valentin Deniaud il y a presque 3 ans

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

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érin supprimé
  • 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)
#6

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

Formats disponibles : Atom PDF