Development #43185
AttributeError: 'NoneType' object has no attribute 'weekday'
Début:
21 mai 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/2373/
AttributeError: 'NoneType' object has no attribute 'weekday' (7 additional frame(s) were not displayed) ... File "chrono/api/views.py", line 461, in get for slot in generator_of_unique_slots File "chrono/api/views.py", line 454, in <listcomp> { File "chrono/api/views.py", line 421, in unique_slots all_slots = list(get_all_slots(agenda, meeting_type, unique=True)) File "chrono/api/views.py", line 194, in get_all_slots base_duration=base_meeting_duration, File "chrono/agendas/models.py", line 565, in get_time_slots real_min_datetime = min_datetime + datetime.timedelta(days=self.weekday - min_datetime.weekday())
Fichiers
Révisions associées
misc: make empty interval using now() (#43185)
Historique
Mis à jour par Frédéric Péters il y a presque 4 ans
- Projet changé de Suivi des traces à Chrono
- Assigné à mis à Benjamin Dauvergne
Mis à jour par Benjamin Dauvergne il y a presque 4 ans
Agenda virtuel sans délais et période de réservation du guichet entièrement couverte par une exception, la correction #43126 ne prend pas en compte ce cas.
Mis à jour par Benjamin Dauvergne il y a presque 4 ans
J'ai poussé une branche avec ce que je pense être la correction, il faut que je modifie un test sur les agendas virtuels pour le vérifier.
Mis à jour par Benjamin Dauvergne il y a presque 4 ans
- Fichier 0002-misc-make-empty-interval-using-now-43185.patch 0002-misc-make-empty-interval-using-now-43185.patch ajouté
- Fichier 0001-tests-add-test-with-exception-completely-covering-op.patch 0001-tests-add-test-with-exception-completely-covering-op.patch ajouté
- Tracker changé de Bug à Development
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Voilà, même problème que #43126 en fait mais je n'avais pas ajouté de test sur les agendas virtuels.
Mis à jour par Nicolas Roche il y a presque 4 ans
- Statut changé de Solution proposée à Solution validée
(Le test reproduit bien l'erreur, désolé d'être passé à côté dans #43126)
Mis à jour par Benjamin Dauvergne il y a presque 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit bb071f19802477663645340ab9007d7f9c089414 Author: Benjamin Dauvergne <bdauvergne@entrouvert.com> Date: Thu May 21 10:39:28 2020 +0200 misc: make empty interval using now() (#43185) commit b2f4df272282b132d3d7c38ff8ad7eafeaa24944 Author: Benjamin Dauvergne <bdauvergne@entrouvert.com> Date: Thu May 21 10:42:15 2020 +0200 tests: add test with exception completely covering opening hours of a desk of a virtual agenda (#43185)
Mis à jour par Frédéric Péters il y a presque 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
tests: add test with exception completely covering opening hours of a desk of a virtual agenda (#43185)