Fix x4 sorting

This commit is contained in:
Tim Van Baak 2020-06-02 20:48:46 -07:00
parent 82d107653e
commit 8a5ceae829
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ def root():
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 else i['created'] if 'created' in i else 0) active_items.sort(key=lambda i: i['time'] if 'time' in i and i['time'] else i['created'] if 'created' in i and i['created'] else 0)
logger.info("Returning {} of {} items".format(len(active_items), total)) logger.info("Returning {} of {} items".format(len(active_items), total))
if errors: if errors: