From ba3028fa86b5b99acf42238659a8d6bab583b074 Mon Sep 17 00:00:00 2001 From: H4CK3R-01 Date: Thu, 12 May 2022 17:41:55 +0200 Subject: [PATCH] Skip stocks where count is 0 #2 --- api/app/blueprints/portfolio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {