We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e6a806 commit 007e5bcCopy full SHA for 007e5bc
api/db.py
@@ -164,11 +164,16 @@ async def create(self, obj):
164
165
async def _create_recursively(self, hierarchy: Hierarchy, parent: Node,
166
cls, col):
167
+ # print out Node object and its full dict
168
+ node = hierarchy.node
169
+ node_debug = node.dict(by_alias=True)
170
+ print(f"_create_recursively node: {node_debug}")
171
obj = parse_node_obj(hierarchy.node)
172
+ print(f"_create_recursively full dict: {obj.dict(by_alias=True)}")
173
if parent:
174
obj.parent = parent.id
175
if obj.id:
- obj.update()
176
+ obj.update()
177
res = await col.replace_one(
178
{'_id': ObjectId(obj.id)}, obj.dict(by_alias=True)
179
)
0 commit comments