Skip to content

Commit d36a8a6

Browse files
author
daviidarr
committed
minor key error
1 parent 84b7c57 commit d36a8a6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

utils/streamlit_utils.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
with st.spinner('fetching meta data'):
1818
coingecko.address_map = coingecko.get_address_map()
1919

20+
2021
def check_whitelist():
2122
if st.session_state.user_tg_handle in st.secrets.whitelist:
2223
st.session_state.authentification = "verified"
@@ -53,11 +54,12 @@ def authentification_sidebar():
5354
else:
5455
with open(os.path.join(os.sep, os.getcwd(), "config", 'params.yaml'), 'r') as fp:
5556
st.session_state.parameters = yaml.safe_load(fp)
57+
st.write('## session parameters')
58+
st.sidebar.json(st.session_state.parameters)
5659
else:
5760
with open(os.path.join(os.sep, os.getcwd(), "config", 'params.yaml'), 'r') as fp:
5861
st.session_state.parameters = yaml.safe_load(fp)
59-
st.write('## session parameters')
60-
st.sidebar.json(st.session_state.parameters)
62+
6163

6264
def prompt_initialization():
6365
def reset():
@@ -138,6 +140,7 @@ def download_grid_button() -> None:
138140
mime='text/yaml',
139141
)
140142

143+
141144
def download_whitelist_template_button(underlyings_candidates: list[str]) -> None:
142145
# button to download grid template
143146
with open(os.path.join(os.sep, os.getcwd(), "config", 'whitelist.yaml'), "r") as download_file:
@@ -148,6 +151,7 @@ def download_whitelist_template_button(underlyings_candidates: list[str]) -> Non
148151
mime='text/yaml',
149152
)
150153

154+
151155
def display_single_backtest(backtest: pd.DataFrame) -> None:
152156
height = 1000
153157
width = 1500
@@ -219,6 +223,7 @@ def display_heatmap(metrics, ind, col, filtering):
219223
except Exception as e:
220224
st.write(str(e))
221225

226+
222227
class MyProgressBar:
223228
'''A progress bar with increment progress (why did i have to do that...)'''
224229
def __init__(self, length, **kwargs):

0 commit comments

Comments
 (0)