From b07dd0424b3fc6a230f77f6b7c9d26709230d1ef Mon Sep 17 00:00:00 2001 From: Sergei Zhitenev Date: Thu, 15 Jan 2026 13:13:56 +0100 Subject: [PATCH] fix accounting date --- poms/graphql/schema.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/poms/graphql/schema.py b/poms/graphql/schema.py index ab23362d7..a9ac42f14 100644 --- a/poms/graphql/schema.py +++ b/poms/graphql/schema.py @@ -1005,13 +1005,13 @@ class PriceHistoryCheckInput: @strawberry.type -class PriceHistoryItem: +class PriceHistoryCheckItem: id: int | None = None name: str | None = None type: str # missing_principal_pricing_history user_code: str | None = None position_size: float | None = None - accounting_date: str + accounting_date: str | None = None transaction_currency_id: int | None = None transaction_currency_name: str | None = None transaction_currency_user_code: str | None = None @@ -1021,7 +1021,7 @@ class PriceHistoryItem: @strawberry.type class PriceHistoryCheck: - items: list[PriceHistoryItem] + items: list[PriceHistoryCheckItem] @strawberry.field @@ -1128,7 +1128,7 @@ def price_history_check( # 3) map result to GraphQL types return PriceHistoryCheck( - items=[from_dict(PriceHistoryItem, row) for row in items], + items=[from_dict(PriceHistoryCheckItem, row) for row in items], )