def recently_ended(self):
if self.ended():<EOL><INDENT>end_date = self.end_date if self.end_date else self.start_date<EOL>if end_date >= offset.date():<EOL><INDENT>return True<EOL><DEDENT><DEDENT>
Determines if event ended recently (within 5 days).
Useful for attending list.