Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def log_event(self, name, description):
self.last_event = Event(name=name,
description=description)
self.events.append(self.last_event)