MCPcopy
hub / github.com/hyperopt/hyperopt / refresh

Method refresh

hyperopt/mongoexp.py:524–525  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

522 return rval
523
524 def refresh(self, doc):
525 self.update(doc, dict(refresh_time=coarse_utcnow()))
526
527 def update(self, doc, dct, collection=None, do_sanity_checks=True):
528 """Return union of doc and dct, after making sure that dct has been

Callers 1

checkpointMethod · 0.45

Calls 2

updateMethod · 0.95
coarse_utcnowFunction · 0.85

Tested by

no test coverage detected