From 4773141ad0207ee6f67bb965ab0c4df752462008 Mon Sep 17 00:00:00 2001 From: Justin Date: Mon, 14 Aug 2023 18:51:47 +0800 Subject: [PATCH] changed formatting a bit for sector data --- database_caller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/database_caller.py b/database_caller.py index c65dad6..5e7a953 100755 --- a/database_caller.py +++ b/database_caller.py @@ -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