[odrs-web/production] Fix ordering of reviews - return the highest scores first
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [odrs-web/production] Fix ordering of reviews - return the highest scores first
- Date: Fri, 2 Jun 2017 20:00:19 +0000 (UTC)
commit 4e828a7261b63e63fbdd14ac9ea330ac0398ee28
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 0ab9f01..bb81e09 100644
--- a/api10.py
+++ b/api10.py
@@ -317,7 +317,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]