Update app.py
Browse files
app.py
CHANGED
|
@@ -574,25 +574,25 @@ if st.session_state.using_memory_storage:
|
|
| 574 |
st.markdown('<div style="background-color: #fff3cd; color: #856404; padding: 8px; border-radius: 4px; font-size: 12px; margin-bottom: 10px;">Using in-memory storage due to file permission issues. Tasks may not persist after refresh.</div>', unsafe_allow_html=True)
|
| 575 |
|
| 576 |
with col1:
|
| 577 |
-
|
| 578 |
with col2:
|
| 579 |
-
|
| 580 |
-
|
| 581 |
-
|
| 582 |
-
|
| 583 |
-
|
| 584 |
-
|
| 585 |
-
|
| 586 |
-
|
| 587 |
-
|
| 588 |
-
|
| 589 |
-
|
| 590 |
-
|
| 591 |
-
|
| 592 |
-
|
| 593 |
-
|
| 594 |
-
|
| 595 |
-
|
| 596 |
st.session_state.tasks = pd.concat([
|
| 597 |
st.session_state.tasks,
|
| 598 |
pd.DataFrame([new_task])
|
|
|
|
| 574 |
st.markdown('<div style="background-color: #fff3cd; color: #856404; padding: 8px; border-radius: 4px; font-size: 12px; margin-bottom: 10px;">Using in-memory storage due to file permission issues. Tasks may not persist after refresh.</div>', unsafe_allow_html=True)
|
| 575 |
|
| 576 |
with col1:
|
| 577 |
+
date_started = st.date_input("Date Started", value=datetime.now().date())
|
| 578 |
with col2:
|
| 579 |
+
date_to_finish = st.date_input("Date to Finish", value=datetime.now().date())
|
| 580 |
+
|
| 581 |
+
due_date = st.date_input("Due Date")
|
| 582 |
+
|
| 583 |
+
if st.button("Add Task"):
|
| 584 |
+
if title: # Basic validation
|
| 585 |
+
task_id = generate_task_id()
|
| 586 |
+
new_task = {
|
| 587 |
+
'ID': task_id,
|
| 588 |
+
'Title': title,
|
| 589 |
+
'Description': description,
|
| 590 |
+
'Assignee': assignee,
|
| 591 |
+
'Status': status,
|
| 592 |
+
'Date Started': date_started,
|
| 593 |
+
'Date to Finish': date_to_finish,
|
| 594 |
+
'Due Date': due_date
|
| 595 |
+
}
|
| 596 |
st.session_state.tasks = pd.concat([
|
| 597 |
st.session_state.tasks,
|
| 598 |
pd.DataFrame([new_task])
|