From 7c9c2232e209b3f4b3eb7c8ba5e2aa77e7e631fd Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Wed, 20 Nov 2019 10:55:25 -0800 Subject: [PATCH] Minor fix --- inquisitor/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inquisitor/app.py b/inquisitor/app.py index 9e83d8d..7c78934 100644 --- a/inquisitor/app.py +++ b/inquisitor/app.py @@ -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: