MCPcopy
hub / github.com/apache/caldera / store

Method store

app/objects/c_objective.py:55–63  ·  view source on GitHub ↗
(self, ram)

Source from the content-addressed store, hash-verified

53 self.goals = goals if goals else []
54
55 def store(self, ram):
56 existing = self.retrieve(ram['objectives'], self.unique)
57 if not existing:
58 ram['objectives'].append(self)
59 return self.retrieve(ram['objectives'], self.unique)
60 existing.update('name', self.name)
61 existing.update('description', self.description)
62 existing.update('goals', self.goals)
63 return existing

Callers

nothing calls this directly

Calls 2

retrieveMethod · 0.80
updateMethod · 0.80

Tested by

no test coverage detected