MCPcopy Create free account
hub / github.com/explorerhq/sql-explorer / get_startup_last_send

Method get_startup_last_send

explorer/models.py:431–439  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

429 return uuid_obj.value
430
431 def get_startup_last_send(self):
432 # Stored as a Unix timestamp
433 try:
434 timestamp = self.get(key=ExplorerValue.STARTUP_METRIC_LAST_SEND).value
435 if timestamp:
436 return float(timestamp)
437 return None
438 except ExplorerValue.DoesNotExist:
439 return None
440
441 def set_startup_last_send(self, ts):
442 obj, created = self.get_or_create(

Callers 1

Calls 1

getMethod · 0.45

Tested by

no test coverage detected