Skip to content

Commit 308ef99

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/db.py

+1
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ async def _create_recursively(self, hierarchy: Hierarchy, parent: Node,
169169
obj.parent = parent.id
170170
if obj.id:
171171
obj.update()
172+
print(f"Updating object with id: {obj.id} full dict: {obj.dict(by_alias=True)}")
172173
res = await col.replace_one(
173174
{'_id': ObjectId(obj.id)}, obj.dict(by_alias=True)
174175
)

0 commit comments

Comments
 (0)