changed formatting a bit for sector data

This commit is contained in:
Justin 2023-08-14 18:51:47 +08:00 committed by GitHub
parent 7838ac8f30
commit 4773141ad0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -920,9 +920,10 @@ def updateMarket(api_key, logf):
pass
try:
for item in sectors:
all_sector_settings['data'][item['symbol']] = {
all_sector_settings['data'][item['name']] = {
"current": str(item['performance'] * 100),
"name": str(item['name']),
"symbol": str(item['symbol'])
}
except:
pass