Bug #79014
backoffice: export-spreadsheet error, block_data est null (TypeError: 'NoneType' object is not subscriptable)
Début:
25 juin 2023
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/112639/
TypeError: 'NoneType' object is not subscriptable (12 additional frame(s) were not displayed) ... File "wcs/backoffice/management.py", line 2413, in export_spreadsheet return self.csv() File "wcs/backoffice/management.py", line 2453, in csv job.execute() File "wcs/backoffice/management.py", line 4377, in execute return self.create_export(formdef, fields, items, total_count) File "wcs/backoffice/management.py", line 4390, in create_export csv_output.writerow(tuple(x['value'] for x in self.get_spreadsheet_line(fields, filled))) File "wcs/backoffice/management.py", line 4316, in get_spreadsheet_line block_row_data = block_data['data'][i]
Demandes liées
Révisions associées
Historique
Mis à jour par Robot Gitea il y a 11 mois
- Statut changé de Nouveau à Solution proposée
Corentin Sechet (csechet) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/431
- Titre : backoffice: fix export of empty block fields to spreadsheets (#79014)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/431/files
Mis à jour par Robot Gitea il y a 11 mois
- Statut changé de Solution proposée à Solution validée
Frédéric Péters (fpeters) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a 11 mois
- Statut changé de Solution validée à Résolu (à déployer)
Frédéric Péters (fpeters) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/431
- Titre : backoffice: fix export of empty block fields to spreadsheets (#79014)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/431/files
Mis à jour par Transition automatique il y a 11 mois
- Statut changé de Résolu (à déployer) à Solution déployée
Mis à jour par Lauréline Guérin il y a 11 mois
- Lié à Bug #79284: backoffice: get_spreadsheet_line error (UnboundLocalError: local variable 'block_row_data' referenced before assignment) ajouté
backoffice: fix export of empty block fields to spreadsheets (#79014)