(fix) add logic to remove exchanges that aren't in coingecko

This commit is contained in:
cardosofede
2022-08-04 22:17:42 +03:00
parent fa2a993173
commit 8634df023b
2 changed files with 2 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ st.sidebar.write("### Exchanges filter 🦅")
exchanges = st.sidebar.multiselect(
"Select the exchanges to analyze:",
options=exchanges_df["name"],
default=CONFIG.MINER_EXCHANGES)
default=[exchange for exchange in CONFIG.MINER_EXCHANGES if exchange in exchanges_df["name"].unique()])
height = len(coin_tickers_df["coin_name"].unique()) * 500
fig = px.scatter(

View File

@@ -59,7 +59,7 @@ st.write("### Exchanges filter 🦅")
exchanges = st.multiselect(
"Select the exchanges to analyze:",
options=exchanges_df["name"],
default=CONFIG.MINER_EXCHANGES)
default=[exchange for exchange in CONFIG.MINER_EXCHANGES if exchange in exchanges_df["name"].unique()])
with st.expander('Coins Tickers Data'):