From 61347ecf04705a1f7af33aeec469e948b81ff3f5 Mon Sep 17 00:00:00 2001 From: frederik Date: Sat, 7 Sep 2024 10:56:20 +0200 Subject: [PATCH] fix: remove apostrophe from common name like php code does --- scripts/plotly_streamlit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/plotly_streamlit.py b/scripts/plotly_streamlit.py index 8d8e584..b122703 100755 --- a/scripts/plotly_streamlit.py +++ b/scripts/plotly_streamlit.py @@ -364,7 +364,7 @@ if daily is False: recording = st.selectbox('Available recordings', recordings.sort_index(ascending=False)) date_specie = df2.loc[df2['File_Name'] == recording, ['Date', 'Com_Name']] date_dir = date_specie['Date'].values[0] - specie_dir = date_specie['Com_Name'].values[0].replace(" ", "_") + specie_dir = date_specie['Com_Name'].values[0].replace(" ", "_").replace("'", "") st.image(userDir + '/BirdSongs/Extracted/By_Date/' + date_dir + '/' + specie_dir + '/' + recording + '.png') st.audio(userDir + '/BirdSongs/Extracted/By_Date/' + date_dir + '/' + specie_dir + '/' + recording) except Exception: