MCPcopy Create free account
hub / github.com/StackStorm/st2 / to_mongo

Method to_mongo

st2common/st2common/fields.py:162–164  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

160 return original_value
161
162 def to_mongo(self, value):
163 value = self.to_python(value)
164 return self._convert_from_datetime(value)
165
166 def prepare_query_value(self, op, value):
167 return self._convert_from_datetime(value)

Callers

nothing calls this directly

Calls 2

to_pythonMethod · 0.95

Tested by

no test coverage detected