Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-debug-toolbar-mongo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-debug-toolbar-mongo
Commits
61c0e69a
Commit
61c0e69a
authored
Jul 27, 2012
by
Colin Howe
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13 from brianz/master
Fix "$query" KeyError when using PyMongo 2.2+
parents
b7a96405
3fdc8a77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
debug_toolbar_mongo/operation_tracker.py
+2
-2
No files found.
debug_toolbar_mongo/operation_tracker.py
View file @
61c0e69a
...
@@ -43,7 +43,7 @@ def _get_stacktrace():
...
@@ -43,7 +43,7 @@ def _get_stacktrace():
"Could not retrieve stack. IndexError exception occured in inspect.stack(). "
"Could not retrieve stack. IndexError exception occured in inspect.stack(). "
"This error might occur when jinja2 templates is on the stack."
,
"This error might occur when jinja2 templates is on the stack."
,
)]
)]
return
_tidy_stacktrace
(
reversed
(
stack
))
return
_tidy_stacktrace
(
reversed
(
stack
))
else
:
else
:
return
[]
return
[]
...
@@ -168,7 +168,7 @@ def _cursor_refresh(cursor_self):
...
@@ -168,7 +168,7 @@ def _cursor_refresh(cursor_self):
# Normal Query
# Normal Query
query_data
[
'skip'
]
=
privar
(
'skip'
)
query_data
[
'skip'
]
=
privar
(
'skip'
)
query_data
[
'limit'
]
=
privar
(
'limit'
)
query_data
[
'limit'
]
=
privar
(
'limit'
)
query_data
[
'query'
]
=
query_son
[
'$query'
]
query_data
[
'query'
]
=
query_son
.
get
(
'$query'
)
query_data
[
'ordering'
]
=
_get_ordering
(
query_son
)
query_data
[
'ordering'
]
=
_get_ordering
(
query_son
)
queries
.
append
(
query_data
)
queries
.
append
(
query_data
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment