Skip to content

Commit 0443c5e

Browse files
Error notification sound alert update
1 parent f0f5739 commit 0443c5e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
else:
125125
color = "#FF0000"
126126
text = f"Server Error ({res.status_code})"
127-
audio_url = "https://github.com/haroontrailblazer/MomentoMonto/blob/main/error.mp3"
127+
audio_url = "https://github.com/haroontrailblazer/MomentoMonto/blob/main/error.mp3?raw=true"
128128
audio_html = f"""<audio src="{audio_url}" autoplay hidden></audio>"""
129129
audio_stat.markdown(audio_html, unsafe_allow_html=True)
130130
response_time = 0
@@ -136,7 +136,7 @@
136136
except Exception:
137137
color = "#FF0000"
138138
text = "Server Down"
139-
audio_url = "https://github.com/haroontrailblazer/MomentoMonto/blob/main/error.mp3"
139+
audio_url = "https://github.com/haroontrailblazer/MomentoMonto/blob/main/error.mp3?raw=true"
140140
audio_html = f"""<audio src="{audio_url}" autoplay hidden></audio>"""
141141
audio_stat.markdown(audio_html, unsafe_allow_html=True)
142142
response_time = 0
@@ -186,6 +186,8 @@
186186
progress_value = 50
187187
elif response_time >= 500:
188188
progress_value = 25
189+
190+
# Update Progress Bar
189191
bar_placeholder.progress(progress_value)
190192

191193

0 commit comments

Comments
 (0)