forgot to add with open portfolio_settings for deleting symbol

This commit is contained in:
Justin
2023-07-11 19:21:04 +08:00
committed by GitHub
parent 17a0e0ea0e
commit c61623198e

View File

@@ -1527,6 +1527,8 @@ def deletePortfolioPosition():
data = {"symbols": {}} data = {"symbols": {}}
try: try:
del data["symbols"][value2] del data["symbols"][value2]
with open('csv/portfolio_settings.json', 'w') as f:
json.dump(data, f)
except: except:
pass pass
return index() return index()