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

Method avg_duration_display

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

Source from the content-addressed store, hash-verified

80 return ql or QueryLog(success=True, run_at=self.created_at)
81
82 def avg_duration_display(self):
83 d = self.avg_duration()
84 if d:
85 return f"{self.avg_duration():10.3f}"
86 return ""
87
88 def avg_duration(self):
89 return self.querylog_set.aggregate(

Callers

nothing calls this directly

Calls 1

avg_durationMethod · 0.95

Tested by

no test coverage detected