def __call__(self, environ, start_response):
        if not self.should_run(environ):
            return self.application(environ, start_response)

        state = State()
        cursor = get_cursor_wrapper(state, queries=self.queries)

        with Patcher('django.db.backends.BaseDatabaseWrapper.cursor', cursor):
            try:
                return list(self.application(environ, start_response))
            finally:
                if self.threshold > state.count:
                    self.log_request(WSGIRequest(environ), state)
dataset/ETHPy150Open disqus/django-perftools/perftools/middleware/querycount.py/QueryCountLoggingMiddleware.__call__/swapped operands of `>`