Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,23 +24,15 @@ def main():
|
|
24 |
st.success(f"Task '{task_name}' added!")
|
25 |
|
26 |
# Display the tasks in a table format with Task ID
|
27 |
-
|
28 |
if st.session_state.tasks:
|
29 |
st.write("Today's Tasks:")
|
30 |
df = pd.DataFrame(st.session_state.tasks)
|
31 |
df['Task Duration (hours)'] = df['Task Duration (hours)'].astype(int)
|
32 |
df['Task Duration (minutes)'] = df['Task Duration (minutes)'].astype(int)
|
33 |
st.table(df[['Task ID', 'Task Name', 'Task Time', 'Task Duration (hours)', 'Task Duration (minutes)', 'Category']]) # Include Task ID here
|
34 |
-
|
35 |
-
|
36 |
-
st.write("Today's Tasks:")
|
37 |
-
report = task_manager.generate_report('daily')
|
38 |
-
if not report.empty:
|
39 |
-
st.write("Daily Report:")
|
40 |
-
st.dataframe(report)
|
41 |
-
visualizer.plot_category_performance('daily', task_manager)
|
42 |
-
else:
|
43 |
-
st.warning("No tasks for today.")
|
44 |
|
45 |
# Input field for deleting a task by ID
|
46 |
task_id_to_delete = st.text_input("Enter Task ID to Delete") # Task ID instead of Task Name
|
|
|
24 |
st.success(f"Task '{task_name}' added!")
|
25 |
|
26 |
# Display the tasks in a table format with Task ID
|
27 |
+
|
28 |
if st.session_state.tasks:
|
29 |
st.write("Today's Tasks:")
|
30 |
df = pd.DataFrame(st.session_state.tasks)
|
31 |
df['Task Duration (hours)'] = df['Task Duration (hours)'].astype(int)
|
32 |
df['Task Duration (minutes)'] = df['Task Duration (minutes)'].astype(int)
|
33 |
st.table(df[['Task ID', 'Task Name', 'Task Time', 'Task Duration (hours)', 'Task Duration (minutes)', 'Category']]) # Include Task ID here
|
34 |
+
|
35 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
# Input field for deleting a task by ID
|
38 |
task_id_to_delete = st.text_input("Enter Task ID to Delete") # Task ID instead of Task Name
|