Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,15 +7,7 @@ import pandas as pd
|
|
7 |
from datetime import datetime
|
8 |
import os
|
9 |
|
10 |
-
|
11 |
-
"""Allows downloading of the specified file."""
|
12 |
-
with open(filepath, "rb") as f:
|
13 |
-
st.download_button(
|
14 |
-
label="Download Database",
|
15 |
-
data=f,
|
16 |
-
file_name=os.path.basename(filepath),
|
17 |
-
mime="application/octet-stream"
|
18 |
-
)
|
19 |
|
20 |
def main():
|
21 |
st.title("Daily Task Tracker")
|
@@ -62,9 +54,7 @@ def main():
|
|
62 |
else:
|
63 |
st.error(f"Task with ID '{task_id_to_delete}' not found.")
|
64 |
|
65 |
-
|
66 |
-
if st.button("Download Database"):
|
67 |
-
download_file("tasks.db") # Adjust the filename if needed
|
68 |
|
69 |
# Report options and other visualizations are unchanged
|
70 |
if st.button("Daily Report"):
|
|
|
7 |
from datetime import datetime
|
8 |
import os
|
9 |
|
10 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
def main():
|
13 |
st.title("Daily Task Tracker")
|
|
|
54 |
else:
|
55 |
st.error(f"Task with ID '{task_id_to_delete}' not found.")
|
56 |
|
57 |
+
|
|
|
|
|
58 |
|
59 |
# Report options and other visualizations are unchanged
|
60 |
if st.button("Daily Report"):
|