MCPcopy Index your code
hub / github.com/WebODM/WebODM / get_value

Method get_value

app/plugins/data_store.py:35–37  ·  view source on GitHub ↗
(self, type, key, default=None)

Source from the content-addressed store, hash-verified

33 raise InvalidDataStoreValue(e)
34
35 def get_value(self, type, key, default=None):
36 datum = self.get_datum(key)
37 return default if datum is None else getattr(datum, type + '_value')
38
39 def get_string(self, key, default=""):
40 return self.get_value('string', key, default)

Callers 5

get_stringMethod · 0.95
get_intMethod · 0.95
get_floatMethod · 0.95
get_boolMethod · 0.95
get_jsonMethod · 0.95

Calls 1

get_datumMethod · 0.95

Tested by

no test coverage detected