MCPcopy Create free account
hub / github.com/alephdata/aleph / update

Method update

aleph/model/alert.py:21–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

19 role = db.relationship(Role, backref=db.backref("alerts", lazy="dynamic")) # noqa
20
21 def update(self):
22 self.notified_at = datetime.utcnow()
23 self.updated_at = self.notified_at
24 db.session.add(self)
25 db.session.flush()
26
27 def to_dict(self):
28 data = self.to_dict_dates()

Callers 2

to_dictMethod · 0.45
createMethod · 0.45

Calls 2

addMethod · 0.80
flushMethod · 0.45

Tested by

no test coverage detected