Skip to content

Commit 66f2d15

Browse files
committed
debug: Add debug data DONOTMERGE
Signed-off-by: Denys Fedoryshchenko <[email protected]>
1 parent 8e6a806 commit 66f2d15

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api/db.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,11 @@ async def create(self, obj):
165165
async def _create_recursively(self, hierarchy: Hierarchy, parent: Node,
166166
cls, col):
167167
obj = parse_node_obj(hierarchy.node)
168+
print(f"_create_recursively full dict: {obj.dict(by_alias=True)}")
168169
if parent:
169170
obj.parent = parent.id
170171
if obj.id:
171-
obj.update()
172+
obj.update()
172173
res = await col.replace_one(
173174
{'_id': ObjectId(obj.id)}, obj.dict(by_alias=True)
174175
)

0 commit comments

Comments
 (0)