[OE-core] [PATCH 7/9] error-report: sort table by 'Submitted on' column
Roxana Ciobanu
roxana.ciobanu at intel.com
Fri Aug 22 08:49:43 UTC 2014
The information in the table needs to be sorted by
"Submitted on", in inverse chronological order (the most
recent error on top).
[YOCTO #6538]
Signer-off-by: Roxana Ciobanu <roxana.ciobanu at intel.com>
---
Post/views.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/Post/views.py b/Post/views.py
index f9c6655..1844c87 100644
--- a/Post/views.py
+++ b/Post/views.py
@@ -61,6 +61,7 @@ def search(request, template_name, items = None, page = None, query = None):
if query == "" or query.isspace():
query = "all"
elems = Info().getSearchResult(query.strip())
+ elems.sort(key=lambda r : r.BUILD.DATE, reverse=True)
no = len(elems)
if no == 0:
return render_to_response("error-page.html", {"query" : query}, RequestContext(request))
--
1.9.1
More information about the Openembedded-core
mailing list