Refactor code for improved readability and consistency

- Cleaned up whitespace and formatting across multiple files for better readability.
This commit is contained in:
JSC
2025-07-02 10:37:48 +02:00
parent e63c7a0767
commit 171dbb9b63
19 changed files with 361 additions and 260 deletions

View File

@@ -2,7 +2,12 @@
from flask import Blueprint
from app.services.decorators import get_current_user, require_auth, require_role, require_credits
from app.services.decorators import (
get_current_user,
require_auth,
require_role,
require_credits,
)
bp = Blueprint("main", __name__)
@@ -63,7 +68,8 @@ def use_credits(amount: int) -> dict[str, str]:
return {
"message": f"Successfully used endpoint! You requested amount: {amount}",
"user": user["email"],
"remaining_credits": user["credits"] - 5, # Note: credits already deducted by decorator
"remaining_credits": user["credits"]
- 5, # Note: credits already deducted by decorator
}