Bug #89091
export grille tarifaire, TypeError: Object of type Decimal is not JSON serializable
Début:
04 avril 2024
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/123791/
TypeError: Object of type Decimal is not JSON serializable (8 additional frame(s) were not displayed) ... File "json/encoder.py", line 406, in _iterencode_dict yield from chunks File "json/encoder.py", line 326, in _iterencode_list yield from chunks File "json/encoder.py", line 406, in _iterencode_dict yield from chunks File "json/encoder.py", line 439, in _iterencode o = _default(o) File "json/encoder.py", line 180, in default raise TypeError(f'Object of type {o.__class__.__name__} '
Révisions associées
Historique
Mis à jour par Robot Gitea il y a 25 jours
- Statut changé de Nouveau à Solution proposée
- Assigné à mis à Lauréline Guérin
Lauréline Guérin (lguerin) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/lingo/pulls/182
- Titre : misc: use DjangoJSONEncoder for exports (#89091)
- Modifications : https://git.entrouvert.org/entrouvert/lingo/pulls/182/files
Mis à jour par Robot Gitea il y a 25 jours
- Statut changé de Solution proposée à Solution validée
Paul Marillonnet (pmarillonnet) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a 25 jours
- Statut changé de Solution validée à Résolu (à déployer)
Lauréline Guérin (lguerin) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/lingo/pulls/182
- Titre : misc: use DjangoJSONEncoder for exports (#89091)
- Modifications : https://git.entrouvert.org/entrouvert/lingo/pulls/182/files
Mis à jour par Transition automatique il y a 25 jours
- Statut changé de Résolu (à déployer) à Solution déployée
misc: use DjangoJSONEncoder for exports (#89091)
default json encoder does not handle decimal values
from DjangoJSONEncoder:
JSONEncoder subclass that knows how to encode date/time, decimal types, and
UUIDs.