fixed repeated items on row 2 of prof display web panel

This commit is contained in:
Justin 2022-10-05 16:47:31 +08:00 committed by GitHub
parent af9d5b3ee9
commit b0aa90e15e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,12 +122,14 @@ def index():
currently_displaying = json.load(f)[1] currently_displaying = json.load(f)[1]
f.close() f.close()
not_displaying = [f for f in all_features if f not in currently_displaying[0]] not_displaying = [f for f in all_features if f not in currently_displaying[0]]
not_displaying2 = [f for f in all_features if f not in currently_displaying[0]]
elif professional: elif professional:
f = open('csv/display_settings.json', 'r') f = open('csv/display_settings.json', 'r')
currently_displaying = json.load(f)[1] currently_displaying = json.load(f)[1]
f.close() f.close()
not_displaying = [f for f in all_features if f not in currently_displaying[0] and f not in currently_displaying[1]] not_displaying = [f for f in all_features if f not in currently_displaying[0]]
not_displaying2 = [f for f in all_features if f not in currently_displaying[1]]
with open('api_keys.txt', 'r') as f: with open('api_keys.txt', 'r') as f:
api_key2 = f.readlines() api_key2 = f.readlines()
@ -222,6 +224,7 @@ def index():
'system_info':system_info, 'system_info':system_info,
'currently_displaying': currently_displaying, 'currently_displaying': currently_displaying,
'not_displaying': not_displaying, 'not_displaying': not_displaying,
'not_displaying2': not_displaying2,
'stocks_settings': stocks_settings, 'stocks_settings': stocks_settings,
'commodities_settings': commodities_settings, 'commodities_settings': commodities_settings,
'crypto_settings': crypto_settings, 'crypto_settings': crypto_settings,