From 747b7e9313db133dd730651debc921ebf590fdcc Mon Sep 17 00:00:00 2001 From: Harris Tzovanakis Date: Thu, 12 May 2016 16:19:48 +0200 Subject: [PATCH] WebAlert: order `Your Searches` by date * Orders the `Your Searches` page by `date` descending. Signed-off-by: Harris Tzovanakis --- modules/webalert/lib/webalert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/webalert/lib/webalert.py b/modules/webalert/lib/webalert.py index 8fd46db718..28591a78f7 100644 --- a/modules/webalert/lib/webalert.py +++ b/modules/webalert/lib/webalert.py @@ -1,5 +1,5 @@ # This file is part of Invenio. -# Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2010, 2011 CERN. +# Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2010, 2011, 2016 CERN. # # Invenio is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -90,7 +90,7 @@ def perform_display(permanent, uid, ln=CFG_SITE_LANG): "FROM query q, user_query uq "\ "WHERE uq.id_user=%s "\ "AND uq.id_query=q.id "\ - "ORDER BY q.id DESC" + "ORDER BY uq.date DESC" params = (uid,) else: # permanent="y"