Skip to content

Commit

Permalink
MOTOR-1083 Deprecate currentOp/collStats commands by 7.0 (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed May 8, 2023
1 parent fdc766b commit 1557700
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions motor/docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,10 @@ async def create_two_indexes():
result = await db.command("buildinfo")
For a command where the value matters, like ``{collstats:
For a command where the value matters, like ``{count:
collection_name}`` we can do::
result = await db.command("collstats", collection_name)
result = await db.command("count", collection_name)
For commands that take additional arguments we can use
kwargs. So ``{filemd5: object_id, root: file_root}`` becomes::
Expand Down
2 changes: 1 addition & 1 deletion test/asyncio_tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ async def test_commands(self):
# End runCommand Example 1

# Start runCommand Example 2
stats = await db.command("collStats", "restaurants")
count = await db.command("count", "restaurants")
# End runCommand Example 2

@asyncio_test
Expand Down

0 comments on commit 1557700

Please sign in to comment.