Skip to content

Commit

Permalink
👹 Feed the hobgoblins (delint).
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 1, 2024
1 parent 07dfffc commit 7631484
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions jaraco/mongodb/oplog.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,7 @@ def _matching_renameCollection_command(op, ns):
op.get('op') == 'c'
and (
# seems command can happen in admin or the db
op['ns'] == 'admin.$cmd'
or op['ns'] == db + '.$cmd'
op['ns'] == 'admin.$cmd' or op['ns'] == db + '.$cmd'
)
and 'renameCollection' in op['o']
and (
Expand Down
2 changes: 1 addition & 1 deletion jaraco/mongodb/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ def upsert_and_fetch(coll, doc, **kwargs):
{"$setOnInsert": doc},
upsert=True,
return_document=pymongo.ReturnDocument.AFTER,
**kwargs
**kwargs,
)

0 comments on commit 7631484

Please sign in to comment.