only report completed tasks at the end of the day
This commit is contained in:
parent
6000adcdd1
commit
011cc71d22
1 changed files with 1 additions and 1 deletions
2
dump.py
2
dump.py
|
|
@ -102,7 +102,7 @@ def generate_signoff_message(target_tag):
|
||||||
format_tasks = make_recursive_formatter(LogbookFormatter())
|
format_tasks = make_recursive_formatter(LogbookFormatter())
|
||||||
import datetime
|
import datetime
|
||||||
today_str = str(datetime.datetime.today()).split()[0]
|
today_str = str(datetime.datetime.today()).split()[0]
|
||||||
reportable = list(filter(lambda t: has_tag(t, target_tag) and t['stop_date'] == today_str, things.logbook()))
|
reportable = list(filter(lambda t: has_tag(t, target_tag) and t['stop_date'] == today_str and t['status'] == 'completed', things.logbook()))
|
||||||
structured_tasks = tasks_to_heirarchy({ 'title': 'Stopping now', 'notes': '', 'status': '' }, reportable)
|
structured_tasks = tasks_to_heirarchy({ 'title': 'Stopping now', 'notes': '', 'status': '' }, reportable)
|
||||||
return format_tasks(structured_tasks, 0)
|
return format_tasks(structured_tasks, 0)
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue