From 44beefaae1473a6df00e2cf52035a711b0dd66b3 Mon Sep 17 00:00:00 2001 From: Jason Lubken Date: Tue, 2 Jun 2020 15:14:25 -0400 Subject: [PATCH] Fix inserted_ids --- src/dsdk/mongo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dsdk/mongo.py b/src/dsdk/mongo.py index fba6fd7..83d34d7 100644 --- a/src/dsdk/mongo.py +++ b/src/dsdk/mongo.py @@ -234,7 +234,7 @@ def insert_many(collection: Collection, docs: Sequence[Dict[str, Any]]): INSERT_MANY, collection.database.name, collection.name, - len(result.inserted.ids), + len(result.inserted_ids), ) return result