1 2 3 4 5 6
def get_user(cursor, user_id): row = cursor.execute( "SELECT id, email FROM users WHERE id = ?", (user_id,), ).fetchone() return row