Adding example for weekly tasks

This commit is contained in:
2023-09-22 13:27:03 +02:00
parent f962eceb89
commit a2c8f66933
3 changed files with 13 additions and 2 deletions

3
.gitignore vendored
View File

@@ -1,3 +1,4 @@
.idea .idea/
configuration.yml configuration.yml
tasks.yml tasks.yml
test/

View File

@@ -67,7 +67,7 @@ if __name__ == "__main__":
conf = load(configuration_file.read(), Loader=FullLoader) conf = load(configuration_file.read(), Loader=FullLoader)
ref_date = datetime.date.today() + datetime.timedelta(days=2) ref_date = datetime.date.today() + datetime.timedelta(days=2)
with open('tasks.example.yml', 'r') as content_file: with open('tasks.yml', 'r') as content_file:
tasks_conf = load(content_file.read(), Loader=FullLoader) tasks_conf = load(content_file.read(), Loader=FullLoader)
task_list = [] task_list = []

View File

@@ -33,6 +33,16 @@ daily_task:
body: This a task that is created everyday body: This a task that is created everyday
priority: 1 priority: 1
weekly_task:
start:
freq: WEEKLY
byweekday: 6
duration:
days: 60
title: A Weekly task
body: This a task that is created once a week and starts on the last day of the week
priority: 1
yearly_task: yearly_task:
start: start:
freq: YEARLY freq: YEARLY