style: apply ruff formatting

This commit is contained in:
3252a8
2026-06-02 15:32:19 +03:00
parent c4d2d0a2fe
commit 4d86015d25
6 changed files with 7 additions and 13 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ class PromoCodeService:
"promo_code_too_many_attempts",
seconds=throttle_result.retry_after
or max(1, int(self.settings.BRUTE_FORCE_LOCK_SECONDS)),
)
)
return False, _("promo_code_not_found", code=code_display)
applied_code = str(promo_data.code or lookup_code)