support setting 'null' in hardcodes
This commit is contained in:
parent
9fd67ff514
commit
09ea4ee5ca
@ -102,6 +102,7 @@ def set_capabilities(tasks: dict[str, TaskConfig], people: dict[str, Person]):
|
|||||||
people[p.lower()].can.add(task)
|
people[p.lower()].can.add(task)
|
||||||
if conf.hardcode is not None:
|
if conf.hardcode is not None:
|
||||||
for day, pers in enumerate(conf.hardcode):
|
for day, pers in enumerate(conf.hardcode):
|
||||||
|
if pers:
|
||||||
people[pers.lower()].does.add((day, task))
|
people[pers.lower()].does.add((day, task))
|
||||||
|
|
||||||
def write_tasks(people, tasks, file=sys.stdout):
|
def write_tasks(people, tasks, file=sys.stdout):
|
||||||
|
Loading…
Reference in New Issue
Block a user