def resuscitate(self): self.active = False self.end = datetime.now() self.closed_reason = "Pulse received" heart = self.parent() heart.last_closed_reason = self.closed_reason resuscitate_mail(self.parent()) heart.put() self.put()
def resuscitate(self): self.active = False self.end = datetime.now() resuscitate_mail(self.parent()) self.put()