From 9ab4050ff725c02b4f355f9b52f1e3f6d1c735dc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 19 Oct 2023 12:58:16 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- payments/dummy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payments/dummy/__init__.py b/payments/dummy/__init__.py index 0316c4419..f1d77d32b 100644 --- a/payments/dummy/__init__.py +++ b/payments/dummy/__init__.py @@ -68,7 +68,7 @@ def process_data(self, payment, request): def capture(self, payment, amount=None): payment.change_status(PaymentStatus.CONFIRMED) - payment.captured_amount = (amount or payment.total) + payment.captured_amount = amount or payment.total return amount def release(self, payment):