Refactor code formatting and suppress security warnings

- Reformatted dicts, loops, and logger calls for improved readability and consistency.
- Suppressed `bandit` warnings (`# noqa: S311`) for non-critical random number generation in demo data.
This commit is contained in:
Felipe Cardoso
2025-11-24 17:58:26 +01:00
parent a05def5906
commit 8659e884e9
2 changed files with 21 additions and 9 deletions

View File

@@ -166,7 +166,11 @@ async def load_demo_data(session):
text(
"UPDATE users SET created_at = :created_at, is_active = :is_active WHERE id = :user_id"
),
{"created_at": random_time, "is_active": user_data.get("is_active", True), "user_id": user.id},
{
"created_at": random_time,
"is_active": user_data.get("is_active", True),
"user_id": user.id,
},
)
logger.info(