Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Show recordings for interims #7197

Merged
merged 8 commits into from
Aug 7, 2024
8 changes: 5 additions & 3 deletions ietf/meeting/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,17 +385,19 @@ def uses_notes(self):
if self.type_id != 'ietf':
return True
num = self.get_number()
return num != None and num >= 108
return num is not None and num >= 108

def has_recordings(self):
if self.type_id != 'ietf':
return True
num = self.get_number()
return num != None and num >= 80
return num is not None and num >= 80

def has_chat_logs(self):
if self.type_id != 'ietf':
return True;
rjsparks marked this conversation as resolved.
Show resolved Hide resolved
num = self.get_number()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For symmetry with the other has_* methods, I think it'd be good to make clear how this behaves with non-"ietf" meetings

return num != None and num >= 60
return num is not None and num >= 60

def meeting_start(self):
"""Meeting-local midnight at the start of the meeting date"""
Expand Down