allow for the tags key to be empty

This commit is contained in:
Tobias Schmidl 2021-12-13 07:29:27 +01:00
parent 0131bbfc71
commit 1e0c3c2bd7

View file

@ -36,7 +36,7 @@ RESULTS = sorted(map(
'id':
x['id'],
'tags':
x['tags']
x['tags'] if 'tags' in x else None
}, TW.summary()),
key=lambda x: x['start'])
IS_ACTIVE = len(list(filter(lambda x: "end" not in x, TW.summary()))) > 0