diff --git a/api/app/blueprints/portfolio.py b/api/app/blueprints/portfolio.py index 67afdec..386e83b 100644 --- a/api/app/blueprints/portfolio.py +++ b/api/app/blueprints/portfolio.py @@ -33,7 +33,7 @@ def get_portfolio(): # Otherwise calculate portfolio if transactions is not None: for row in transactions: - if count == 0: + if row[2] == 0: continue else: data = {