Skip to content

Commit

Permalink
fix: Handle proceedings for "notmeet" sessions correctly (#5065)
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-richards authored Feb 1, 2023
1 parent 7ddc09e commit 760a01a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions ietf/meeting/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3621,7 +3621,8 @@ def _format_materials(items):
"""
material_times = {} # key is material, value is first timestamp it appeared
for s, mats in items:
timestamp = s.official_timeslotassignment().timeslot.time
tsa = s.official_timeslotassignment()
timestamp = tsa.timeslot.time if tsa else None
if not isinstance(mats, list):
mats = [mats]
for mat in mats:
Expand All @@ -3640,7 +3641,7 @@ def _format_materials(items):
'group': group,
'name': sess_name,
'canceled': all_canceled,
# pass sessions instead of the materials here so session data (like time) is easily available
'has_materials': s.sessionpresentation_set.exists(),
'agendas': _format_materials((s, s.agenda()) for s in ss),
'minutes': _format_materials((s, s.minutes()) for s in ss),
'bluesheets': _format_materials((s, s.bluesheets()) for s in ss),
Expand Down
2 changes: 1 addition & 1 deletion ietf/templates/meeting/proceedings.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ <h2 class="mt-5" id="{{ area.acronym }}">
</tr>
</thead>
<tbody>
{% for entry in not_meeting_groups %}{% if entry.sessions_with_materials %}
{% for entry in not_meeting_groups %}{% if entry.has_materials %}
{% include "meeting/group_proceedings.html" with entry=entry meeting=meeting show_agenda=True only %}
{% endif %}{% endfor %}
</tbody>
Expand Down

0 comments on commit 760a01a

Please sign in to comment.