MCPcopy Create free account
hub / github.com/serverless/examples / save

Method save

aws-python-rest-api-with-pynamodb/todos/todo_model.py:23–25  ·  view source on GitHub ↗
(self, conditional_operator=None, **expected_values)

Source from the content-addressed store, hash-verified

21 updatedAt = UTCDateTimeAttribute(null=False)
22
23 def save(self, conditional_operator=None, **expected_values):
24 self.updatedAt = datetime.now()
25 super(TodoModel, self).save()
26
27 def __iter__(self):
28 for name, attr in self._get_attributes().items():

Callers 2

createFunction · 0.95
updateFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected