CosmoAI commited on
Commit
40a52b2
·
1 Parent(s): 0360f8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -32,8 +32,8 @@ if st.button("Create Task"):
32
  st.balloons()
33
 
34
 
35
- if st.button("notify"):
36
- st.toast("You have a new reminder")
37
 
38
 
39
  import time
@@ -48,7 +48,7 @@ def show_toast_message(reminder_message, reminder_time):
48
  time_diff = reminder_time - time.localtime()
49
 
50
  # If the time difference is less than or equal to 0, then show the toast message.
51
- if time_diff <= 0:
52
  st.toast(reminder_message, icon="ℹ️")
53
 
54
  # Get the user input.
 
32
  st.balloons()
33
 
34
 
35
+ # if st.button("notify"):
36
+ # st.toast("You have a new reminder")
37
 
38
 
39
  import time
 
48
  time_diff = reminder_time - time.localtime()
49
 
50
  # If the time difference is less than or equal to 0, then show the toast message.
51
+ if time_diff <= 0 or if st.button("notify"):
52
  st.toast(reminder_message, icon="ℹ️")
53
 
54
  # Get the user input.