chore: fix formatting checks
This commit is contained in:
@@ -288,9 +288,7 @@ class WataService(HttpClientMixin):
|
||||
return web.Response(status=400, text="bad_request")
|
||||
|
||||
transaction_id = str(payload.get("transactionId") or "").strip()
|
||||
payment_link_id = str(
|
||||
payload.get("paymentLinkId") or payload.get("id") or ""
|
||||
).strip()
|
||||
payment_link_id = str(payload.get("paymentLinkId") or payload.get("id") or "").strip()
|
||||
status = str(payload.get("transactionStatus") or "").strip().lower()
|
||||
order_id_raw = payload.get("orderId")
|
||||
amount_raw = payload.get("amount")
|
||||
@@ -339,8 +337,7 @@ class WataService(HttpClientMixin):
|
||||
except Exception:
|
||||
await session.rollback()
|
||||
logging.exception(
|
||||
"Wata webhook: failed to persist transaction id %s "
|
||||
"for payment %s.",
|
||||
"Wata webhook: failed to persist transaction id %s for payment %s.",
|
||||
transaction_id,
|
||||
payment.payment_id,
|
||||
)
|
||||
|
||||
@@ -452,9 +452,7 @@ def _resolve_yookassa_activation_amounts(
|
||||
else:
|
||||
months_for_activation = int(traffic_amount_gb)
|
||||
|
||||
traffic_gb_for_activation = (
|
||||
traffic_amount_gb if is_traffic_sale_base(sale_mode_base) else None
|
||||
)
|
||||
traffic_gb_for_activation = traffic_amount_gb if is_traffic_sale_base(sale_mode_base) else None
|
||||
return (
|
||||
subscription_months,
|
||||
traffic_amount_gb,
|
||||
|
||||
Reference in New Issue
Block a user