Dash table not changing the data after call a function more then once

Hey guys, I was looking to solve this problem on the internet but I couldn’t find it. I’m using a plotly page inside a flask app and the code looks like this:

image

On this app, the user selects a project and run the “run” function. This function access a database passing the “select” variable to filter the data and displaying that data on the layout. This works perfectly once, but when the user goes back to the home page and select another project, the data is not changing and we cannot even filter the data that appears on the dash table.