Expose note in time log dialog and reports
All checks were successful
CI / test (push) Successful in 3m58s
Lint / test (push) Successful in 27s
Trivy / test (push) Successful in 22s

This commit is contained in:
Miguel Jacq 2025-11-19 20:50:04 +11:00
parent f41ec9a5a9
commit 119d326eea
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
4 changed files with 64 additions and 39 deletions

View file

@ -987,6 +987,7 @@ class DBManager:
SELECT
{bucket_expr} AS bucket,
a.name AS activity_name,
t.note AS note,
SUM(t.minutes) AS total_minutes
FROM time_log t
JOIN activities a ON a.id = t.activity_id
@ -998,7 +999,10 @@ class DBManager:
(project_id, start_date_iso, end_date_iso),
).fetchall()
return [(r["bucket"], r["activity_name"], r["total_minutes"]) for r in rows]
return [
(r["bucket"], r["activity_name"], r["note"], r["total_minutes"])
for r in rows
]
def close(self) -> None:
if self.conn is not None: