[odrs-web/wip/rancell/review-order] Fix ordering of reviews - return the highest scores first
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [odrs-web/wip/rancell/review-order] Fix ordering of reviews - return the highest scores first
- Date: Thu, 1 Jun 2017 02:50:48 +0000 (UTC)
commit 58f43185a3343a0658c46eb9105a679ad81178a5
Author: Robert Ancell <robert ancell canonical com>
Date: Thu Jun 1 09:17:54 2017 +1200
Fix ordering of reviews - return the highest scores first
api10.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/api10.py b/api10.py
index ff89bad..a0d49f4 100644
--- a/api10.py
+++ b/api10.py
@@ -277,7 +277,7 @@ def fetch():
items_new.append(item_new)
# sort and cut to limit
- sorted(items_new, key=lambda item: item['score'])
+ sorted(items_new, key=lambda item: item['score'], reverse=True)
if item['limit'] > 0:
items_new = items_new[:item['limit']]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]