File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ async def check_allocation(allocation: Allocation) -> None:
26
26
subscription_summary = await get_subscriptions_summary (sub_id = allocation .sub_id )
27
27
28
28
# Get the first row (should only be one)
29
- subscription_summary = SubscriptionSummary (** subscription_summary [0 ])
29
+ # pylint: disable=protected-access
30
+ subscription_summary = SubscriptionSummary (** subscription_summary [0 ]._mapping )
31
+ # pylint: enable=protected-access
30
32
31
33
if not subscription_summary .approved_to :
32
34
raise HTTPException (
Original file line number Diff line number Diff line change @@ -110,7 +110,9 @@ async def check_approval(approval: Approval) -> None:
110
110
subscription_summary = await get_subscriptions_summary (sub_id = approval .sub_id )
111
111
112
112
# Get the first row (should only be one)
113
- subscription_summary = SubscriptionSummary (** subscription_summary [0 ])
113
+ # pylint: disable=protected-access
114
+ subscription_summary = SubscriptionSummary (** subscription_summary [0 ]._mapping )
115
+ # pylint: enable=protected-access
114
116
115
117
current_date = datetime .date .today ()
116
118
You can’t perform that action at this time.
0 commit comments