Adding example for weekly tasks
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
.idea
|
||||
.idea/
|
||||
configuration.yml
|
||||
tasks.yml
|
||||
test/
|
||||
2
main.py
2
main.py
@@ -67,7 +67,7 @@ if __name__ == "__main__":
|
||||
conf = load(configuration_file.read(), Loader=FullLoader)
|
||||
|
||||
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)
|
||||
|
||||
task_list = []
|
||||
|
||||
@@ -33,6 +33,16 @@ daily_task:
|
||||
body: This a task that is created everyday
|
||||
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:
|
||||
start:
|
||||
freq: YEARLY
|
||||
|
||||
Reference in New Issue
Block a user