fixed bug portfolio days not updating
This commit is contained in:
parent
f3f99e6ee6
commit
356546558e
@ -946,9 +946,9 @@ def savePortfolioCryptoSettings():
|
||||
symbol1 = settings['symbol']
|
||||
|
||||
days1 = settings['days']
|
||||
day_start = datetime.datetime.strptime(str(days1), "%Y-%m-%d")
|
||||
day_today = datetime.datetime.strptime(datetime.datetime.now(pytz.utc).strftime("%Y-%m-%d"), "%Y-%m-%d")
|
||||
days1 = str((day_today - day_start).days)
|
||||
# day_start = datetime.datetime.strptime(str(days1), "%Y-%m-%d")
|
||||
# day_today = datetime.datetime.strptime(datetime.datetime.now(pytz.utc).strftime("%Y-%m-%d"), "%Y-%m-%d")
|
||||
# days1 = str((day_today - day_start).days)
|
||||
|
||||
portfolio['symbols'][symbol1] = {'shares':shares1, 'day':days1, 'cost':cost1}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user