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
a3ecfa94
Commit
a3ecfa94
authored
Mar 07, 2013
by
Colin Howe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pull $query when needed
parent
04c032da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
debug_toolbar_mongo/__init__.py
+1
-1
debug_toolbar_mongo/operation_tracker.py
+3
-0
No files found.
debug_toolbar_mongo/__init__.py
View file @
a3ecfa94
# following PEP 386, versiontools will pick it up
# following PEP 386, versiontools will pick it up
__version__
=
(
0
,
1
,
8
,
"final"
,
0
)
__version__
=
(
0
,
1
,
9
,
"final"
,
0
)
debug_toolbar_mongo/operation_tracker.py
View file @
a3ecfa94
...
@@ -154,6 +154,9 @@ def _cursor_refresh(cursor_self):
...
@@ -154,6 +154,9 @@ def _cursor_refresh(cursor_self):
query_data
[
'collection'
]
=
collection_name
.
full_name
.
split
(
'.'
)[
1
]
query_data
[
'collection'
]
=
collection_name
.
full_name
.
split
(
'.'
)[
1
]
if
query_data
[
'collection'
]
==
'$cmd'
:
if
query_data
[
'collection'
]
==
'$cmd'
:
# The query can be embedded within $query in some cases
query_son
=
query_son
.
get
(
"$query"
,
query_son
)
query_data
[
'operation'
]
=
'command'
query_data
[
'operation'
]
=
'command'
# Handle count as a special case
# Handle count as a special case
if
'count'
in
query_son
:
if
'count'
in
query_son
:
...
...
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