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

Method last_run_log

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

Source from the content-addressed store, hash-verified

76 return self.querylog_set.count()
77
78 def last_run_log(self):
79 ql = self.querylog_set.first()
80 return ql or QueryLog(success=True, run_at=self.created_at)
81
82 def avg_duration_display(self):
83 d = self.avg_duration()

Callers 1

Calls 1

QueryLogClass · 0.85

Tested by

no test coverage detected