Skip to content

Commit 77b1a79

Browse files
committed
Update _sql_time to calculate total duration
1 parent 89ba235 commit 77b1a79

File tree

1 file changed

+1
-0
lines changed
  • django_mongodb_extensions/debug_toolbar/panels/mql

1 file changed

+1
-0
lines changed

django_mongodb_extensions/debug_toolbar/panels/mql/tracking.py

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def log(self, op, duration, args, kwargs=None):
3232
args = ", ".join(repr(arg) for arg in args)
3333
operation = f"db.{self.collection_name}{op}({args})"
3434
if self.logger:
35+
self.logger._sql_time += duration
3536
self.logger._queries.append(
3637
{
3738
"alias": self.db.alias,

0 commit comments

Comments
 (0)