mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 03:11:54 +00:00
[Django 1.6] update monkeypatching for CursorDebugWrapper.
(imported from commit cb4b44a2bb6ba6efbd1fb5710da2df7c1dec7f81)
This commit is contained in:
@@ -177,7 +177,6 @@ class JsonErrorHandler(object):
|
|||||||
# Monkeypatch in time tracking to the Django non-debug cursor
|
# Monkeypatch in time tracking to the Django non-debug cursor
|
||||||
# Code comes from CursorDebugWrapper
|
# Code comes from CursorDebugWrapper
|
||||||
def wrapper_execute(self, action, sql, params=()):
|
def wrapper_execute(self, action, sql, params=()):
|
||||||
self.set_dirty()
|
|
||||||
start = time.time()
|
start = time.time()
|
||||||
try:
|
try:
|
||||||
return action(sql, params)
|
return action(sql, params)
|
||||||
|
|||||||
@@ -93,7 +93,6 @@ def queries_captured():
|
|||||||
queries = []
|
queries = []
|
||||||
|
|
||||||
def wrapper_execute(self, action, sql, params=()):
|
def wrapper_execute(self, action, sql, params=()):
|
||||||
self.set_dirty()
|
|
||||||
start = time.time()
|
start = time.time()
|
||||||
try:
|
try:
|
||||||
return action(sql, params)
|
return action(sql, params)
|
||||||
|
|||||||
Reference in New Issue
Block a user