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

Function instance_identifier

explorer/telemetry.py:19–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18
19def instance_identifier():
20 from explorer.models import ExplorerValue
21 key = "explorer_instance_uuid"
22 r = cache.get(key)
23 if not r:
24 r = ExplorerValue.objects.get_uuid()
25 cache.set(key, r, 60 * 60 * 24)
26 return r
27
28
29class SelfNamedEnum(Enum):

Callers 2

__init__Method · 0.85

Calls 2

get_uuidMethod · 0.80
getMethod · 0.45

Tested by 1