style: remove trailing whitespace in website_sync.py

This commit is contained in:
SmartUp Developer
2026-07-02 21:45:02 +08:00
parent fdbcca4d95
commit 1cb13e878e
+1 -1
View File
@@ -181,7 +181,7 @@ def sync_binding(db: Session, binding: WebsiteGroupBinding, write: bool = True)
w1 = Decimal("0.85")
w_others = Decimal("0.15") / Decimal(N - 1)
base = rates_sorted[0] * w1 + sum(rates_sorted[1:], Decimal("0")) * w_others
if base > 0:
effective_percent = (target_rate / base - Decimal("1")) * Decimal("100")
auto_percent_str = fixed_decimal_string(effective_percent.quantize(Decimal("0.01"), rounding=ROUND_HALF_UP), 2)