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

Method should_send_summary_stats

explorer/telemetry.py:59–65  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 return self.name == StatNames.STARTUP_STATS.value
58
59 def should_send_summary_stats(self):
60 from explorer.models import ExplorerValue
61 last_send = ExplorerValue.objects.get_startup_last_send()
62 if not last_send:
63 return True
64 else:
65 return self.time - last_send >= self.STARTUP_STAT_COLLECTION_INTERVAL
66
67 def send_summary_stats(self):
68 from explorer.models import ExplorerValue

Callers 1

trackMethod · 0.95

Calls 1

get_startup_last_sendMethod · 0.80

Tested by

no test coverage detected