Change remaining database placeholders to %s for consistency

parent 54754db9
......@@ -755,7 +755,7 @@ def get_user_by_id(user_id: int) -> Optional[Dict[str, Any]]:
"""Get user by ID."""
conn = get_db_connection()
cursor = conn.cursor()
cursor.execute('SELECT id, username, email, role, active, created_at, last_login, avatar FROM users WHERE id = ?',
cursor.execute('SELECT id, username, email, role, active, created_at, last_login, avatar FROM users WHERE id = %s',
(user_id,))
row = cursor.fetchone()
conn.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment