Spaces:
Runtime error
Runtime error
home.py
CHANGED
|
@@ -5,12 +5,14 @@ from streamlit_option_menu import option_menu
|
|
| 5 |
def Create_Reminder():
|
| 6 |
st.title("Create Reminder")
|
| 7 |
message = st.text_input("What are you planning to do?")
|
| 8 |
-
time = st.time_input("
|
| 9 |
-
date = st.date_input("
|
| 10 |
|
| 11 |
-
if st.button("
|
| 12 |
-
|
| 13 |
-
|
|
|
|
|
|
|
| 14 |
|
| 15 |
|
| 16 |
|
|
|
|
| 5 |
def Create_Reminder():
|
| 6 |
st.title("Create Reminder")
|
| 7 |
message = st.text_input("What are you planning to do?")
|
| 8 |
+
time = st.time_input("Time")
|
| 9 |
+
date = st.date_input("Date")
|
| 10 |
|
| 11 |
+
if st.button("Create Reminder"):
|
| 12 |
+
st.session_state["reminders"] = st.db["reminders"].insert_one({"message": message, "time": time, "date": date})
|
| 13 |
+
|
| 14 |
+
if __name__ == "__main__":
|
| 15 |
+
dashboard()
|
| 16 |
|
| 17 |
|
| 18 |
|