human
Solve the following python programming problem given the following code:
@ has_access 
@ expose ('/dashboard/<dashboard_id>/') 
def dashboard(self, dashboard_id) : 
    'Server side rendering for a dashboard' 
    session = db.session () 
    qry = session.query (models.Dashboard) 
    if dashboard_id.isdigit () : 
        qry = qry.filter_by (id = int (dashboard)) 
else : 
        qry = qry.filter_by (slug = dashboard_id) 
templates = session.query (models.CssTemplate).all () 
    dash = qry.first () 
    @ log_this 
    def dashboard(**kwargs) : 
        pass 
dashboard (dashboard_id = dash.id) 
    pos_dict = { 
        
} 
    if dash.position_json : 
        pos_dict = { int (o ['slice_id']) : o for o in json.loads (dash.position_json) } 
return self.render_template ('caravel/dashboard.html', dashboard = dash, templates = templates, pos_dict = pos_dict, dash_save_perm = appbuilder.sm.has_access ('can_save_dash', 'Caravel'), dash_edit_perm = appbuilder.sm.has_access ('can_edit', 'DashboardModelView')) 

    
    

    Fix the buggy line: qry = qry.filter_by (id = int (dashboard))
assistant
#Here is Python code to fix the buggy line: qry = qry.

qry = qry.filter_by (id = int (dashboard_id))