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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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