From 54a88dbabf3a501d9dc02ca947305263ecf8e0cd Mon Sep 17 00:00:00 2001 From: Niels Perfors Date: Mon, 23 Sep 2024 11:09:50 +0200 Subject: [PATCH] Fix (#29) * fix annotation * fix mapping in export.load_measurements --- src/sapcommissions/export.py | 2 +- src/sapcommissions/model/resource.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sapcommissions/export.py b/src/sapcommissions/export.py index 328c953..afa8694 100644 --- a/src/sapcommissions/export.py +++ b/src/sapcommissions/export.py @@ -317,7 +317,7 @@ async def load_measurements( "name": "Name", "value": "Value", "pipeline_run_date": "Create Date", - "rule": "Rule", + "rule_name": "Rule", "number_of_credits": "Number of Credits", "business_units": "Business Unit", "ga1": "GA1", diff --git a/src/sapcommissions/model/resource.py b/src/sapcommissions/model/resource.py index 11df954..362ae99 100644 --- a/src/sapcommissions/model/resource.py +++ b/src/sapcommissions/model/resource.py @@ -182,7 +182,7 @@ class Credit(Resource, Generic16Mixin): preadjusted_value: Value origin_type_id: str reason: str | Reference | None = None - rule: str | Reference | Reference | None = None + rule: str | Reference | None = None is_rollable: bool | None = None roll_date: datetime | None = None is_held: bool | None = None