fix(card): 修复卡片列表(所有者)查询为空问题
This commit is contained in:
@@ -99,7 +99,7 @@ async def get_me_all_card(
|
||||
conditions.append(Card.category == category)
|
||||
|
||||
if category == 'displayed':
|
||||
conditions.append(UserCollection.displayed is True)
|
||||
conditions.append(UserCollection.displayed == True)
|
||||
|
||||
# 记录总数查询
|
||||
total_stmt = (
|
||||
|
||||
@@ -71,6 +71,7 @@ class CardOut(CardVisitOut):
|
||||
id: Optional[int] = None
|
||||
card_id: Optional[int] = None
|
||||
card_year: str | None
|
||||
category: CardCategoryType
|
||||
purchase_price: Optional[condecimal(max_digits=10, decimal_places=2)] = None
|
||||
displayed: Optional[bool] = False
|
||||
diy_source: Optional[str] = None
|
||||
|
||||
Reference in New Issue
Block a user