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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user