mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
hound fixes
This commit is contained in:
parent
bb77c72b98
commit
c9f381e60b
1 changed files with 6 additions and 2 deletions
|
|
@ -167,7 +167,9 @@ class CustomDbConnector:
|
|||
@auto_reconnect
|
||||
def insert_one(self, item, **options):
|
||||
assert isinstance(item, dict), "item must be of type <dict>"
|
||||
return self._database[self.active_collection].insert_one(item, **options)
|
||||
return self._database[self.active_collection].insert_one(
|
||||
item, **options
|
||||
)
|
||||
|
||||
@check_active_collection
|
||||
@auto_reconnect
|
||||
|
|
@ -178,7 +180,9 @@ class CustomDbConnector:
|
|||
assert isinstance(item, dict), "`item` must be of type <dict>"
|
||||
|
||||
options["ordered"] = ordered
|
||||
return self._database[self.active_collection].insert_many(items, **options)
|
||||
return self._database[self.active_collection].insert_many(
|
||||
items, **options
|
||||
)
|
||||
|
||||
@check_active_collection
|
||||
@auto_reconnect
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue