From 6c657010d2aeab540cb37a8e01821f0cd3a93587 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Tue, 2 Jun 2020 20:44:42 -0700 Subject: [PATCH] Fix sorting fix --- inquisitor/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inquisitor/app.py b/inquisitor/app.py index e2b2eea..43e9165 100644 --- a/inquisitor/app.py +++ b/inquisitor/app.py @@ -53,7 +53,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.get('time', i.get('created', 0))) + active_items.sort(key=lambda i: i.item.get('time', i.item.get('created', 0))) logger.info("Returning {} of {} items".format(len(active_items), total)) if errors: