mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
ruff: Fix PLR6104 Use +=
to perform an augmented assignment directly.
This is a preview rule, not yet enabled by default. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
b96feb34f6
commit
1e9b6445a9
@@ -2412,7 +2412,7 @@ class BillingSession(ABC):
|
||||
if plan.fixed_price is None and flat_discounted_months > 0:
|
||||
flat_discounted_months = min(flat_discounted_months, num_months_next_cycle)
|
||||
discount = flat_discount * flat_discounted_months
|
||||
renewal_cents = renewal_cents - discount
|
||||
renewal_cents -= discount
|
||||
|
||||
charge_automatically = plan.charge_automatically
|
||||
if customer.stripe_customer_id is not None:
|
||||
|
Reference in New Issue
Block a user