Skip to content

Commit

Permalink
Merge branch 'fix_apostrophe'
Browse files Browse the repository at this point in the history
  • Loading branch information
Nachtzuster committed Sep 14, 2024
2 parents 0248964 + 3dc8b6d commit 3d99530
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/plotly_streamlit.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def hms_to_str(t):
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:
Expand Down
2 changes: 1 addition & 1 deletion scripts/stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@


if(isset($_GET['species'])){
$selection = $_GET['species'];
$selection = htmlspecialchars_decode($_GET['species'], ENT_QUOTES);
$statement3 = $db->prepare("SELECT Com_Name, Sci_Name, COUNT(*), MAX(Confidence), File_Name, Date, Time from detections WHERE Com_Name = \"$selection\"");
ensure_db_ok($statement3);
$result3 = $statement3->execute();
Expand Down

0 comments on commit 3d99530

Please sign in to comment.