fix(card): 查询卡片id被关联id覆盖

This commit is contained in:
xingc
2025-04-28 16:33:49 +08:00
parent 0222bacae5
commit 37d5fe1707
2 changed files with 2 additions and 1 deletions

View File

@@ -122,7 +122,7 @@ async def get_me_all_card(
'list': [
{
**card.dict(),
**user_collection.dict()
**user_collection.dict(exclude={'id'})
} for card, user_collection in records
],
'total': total.scalar(),