I have created a refresh button that updates the portfolio table with the sum of products table:
#refresh portfolio stats @app.route(\'/refresh\', methods = [\'GE