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

Method avg_duration

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

Source from the content-addressed store, hash-verified

86 return ""
87
88 def avg_duration(self):
89 return self.querylog_set.aggregate(
90 models.Avg("duration")
91 )["duration__avg"]
92
93 def passes_blacklist(self):
94 return passes_blacklist(self.final_sql())

Callers 2

avg_duration_displayMethod · 0.95
test_avg_durationMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_avg_durationMethod · 0.64