Minor fix

This commit is contained in:
Tim Van Baak 2019-11-20 10:55:25 -08:00
parent 9b92329b37
commit 7c9c2232e2
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ def root():
if not any(map(lambda f: f(item), filters)):
active_items.append(item)
# Sort items by time
active_items.sort(key=lambda i: i['time'] if 'time' in i else 0)
active_items.sort(key=lambda i: i['time'] if 'time' in i and i['time'] else 0)
logger.info("Returning {} of {} items".format(len(active_items), total))
if item_read_exceptions: