Skip stocks where count is 0
This commit is contained in:
parent
124b233a71
commit
f8a34d88d1
@ -33,6 +33,9 @@ def get_portfolio():
|
|||||||
# Otherwise calculate portfolio
|
# Otherwise calculate portfolio
|
||||||
if transactions is not None:
|
if transactions is not None:
|
||||||
for row in transactions:
|
for row in transactions:
|
||||||
|
if count == 0:
|
||||||
|
continue
|
||||||
|
else:
|
||||||
data = {
|
data = {
|
||||||
"isin": row[0],
|
"isin": row[0],
|
||||||
"comment": row[1],
|
"comment": row[1],
|
||||||
|
Loading…
Reference in New Issue
Block a user