We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0c424c commit e6a1fcbCopy full SHA for e6a1fcb
debug_toolbar/management/commands/debugsqlshell.py
@@ -9,12 +9,12 @@
9
10
class PrintQueryWrapper(util.CursorDebugWrapper):
11
def execute(self, sql, params=()):
12
- starttime = datetime.today()
+ starttime = datetime.now()
13
try:
14
return self.cursor.execute(sql, params)
15
finally:
16
raw_sql = self.db.ops.last_executed_query(self.cursor, sql, params)
17
- execution_time = datetime.today() - starttime
+ execution_time = datetime.now() - starttime
18
print sqlparse.format(raw_sql, reindent=True)
19
print
20
print 'Execution time: %fs' % execution_time.total_seconds()
0 commit comments