Whitespace

This commit is contained in:
Tim Van Baak 2019-12-17 12:10:18 -08:00
parent 1138e2b3a8
commit df45012c21
1 changed files with 4 additions and 4 deletions

View File

@ -44,14 +44,14 @@ def root():
active_items = [] active_items = []
active_tags = {} active_tags = {}
for item in items: for item in items:
if item['active']: if item['active']:
for tag in item['tags']: for tag in item['tags']:
if tag not in active_tags: active_tags[tag] = 0 if tag not in active_tags: active_tags[tag] = 0
active_tags[tag] += 1 active_tags[tag] += 1
# active_tags |= set(item['tags']) # active_tags |= set(item['tags'])
total += 1 total += 1
if not any(map(lambda f: f(item), filters)): if not any(map(lambda f: f(item), filters)):
active_items.append(item) active_items.append(item)
# Sort items by time # Sort items by time
active_items.sort(key=lambda i: i['time'] if 'time' in i and i['time'] else 0) active_items.sort(key=lambda i: i['time'] if 'time' in i and i['time'] else 0)