Projet

Général

Profil

Bug #79284

backoffice: get_spreadsheet_line error (UnboundLocalError: local variable 'block_row_data' referenced before assignment)

Ajouté par Sentry Io il y a 11 mois. Mis à jour il y a 10 mois.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
01 juillet 2023
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/112800/

UnboundLocalError: local variable 'block_row_data' referenced before assignment
(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 4382, in execute
    return self.create_export(formdef, fields, items, total_count)
  File "wcs/backoffice/management.py", line 4396, in create_export
    csv_output.writerow(tuple(x['value'] for x in self.get_spreadsheet_line(fields, filled)))
  File "wcs/backoffice/management.py", line 4329, in get_spreadsheet_line
    display_value = block_row_data.get(f'{field.id}_display')

suite #79014


Demandes liées

Lié à w.c.s. - Bug #79014: backoffice: export-spreadsheet error, block_data est null (TypeError: 'NoneType' object is not subscriptable)Fermé25 juin 2023

Actions

Révisions associées

Révision 57b76baf (diff)
Ajouté par Frédéric Péters il y a 11 mois

backoffice: fix csv export of empty blocks (#79284)

Historique

#1

Mis à jour par Lauréline Guérin il y a 11 mois

  • Projet changé de Suivi des traces à w.c.s.
#2

Mis à jour par Lauréline Guérin il y a 11 mois

  • Lié à Bug #79014: backoffice: export-spreadsheet error, block_data est null (TypeError: 'NoneType' object is not subscriptable) ajouté
#3

Mis à jour par Frédéric Péters il y a 11 mois

  • Assigné à mis à Frédéric Péters
#4

Mis à jour par Robot Gitea il y a 11 mois

  • Statut changé de Nouveau à Solution proposée

Frédéric Péters (fpeters) a ouvert une pull request sur Gitea concernant cette demande :

#5

Mis à jour par Robot Gitea il y a 11 mois

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

Lauréline Guérin (lguerin) a approuvé une pull request sur Gitea concernant cette demande :

#6

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 :

#7

Mis à jour par Transition automatique il y a 10 mois

  • Statut changé de Résolu (à déployer) à Solution déployée
#8

Mis à jour par Transition automatique il y a 8 mois

Automatic expiration

Formats disponibles : Atom PDF