[Pkg-debile-commits] [debile-web] 03/04: only display the last version
Sylvestre Ledru
sylvestre at moszumanska.debian.org
Wed Dec 18 10:56:41 UTC 2013
This is an automated email from the git hooks/post-receive script.
sylvestre pushed a commit to branch update-usuability
in repository debile-web.
commit a713bbb4da2e25acf168e4b90d800cccbf74f571
Author: Sylvestre Ledru <sylvestre at debian.org>
Date: Wed Dec 18 11:54:35 2013 +0100
only display the last version
---
debileweb/blueprints/frontend.py | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/debileweb/blueprints/frontend.py b/debileweb/blueprints/frontend.py
index b5bb207..78716eb 100644
--- a/debileweb/blueprints/frontend.py
+++ b/debileweb/blueprints/frontend.py
@@ -151,18 +151,14 @@ def source_list():
@frontend.route("/prefix/<prefix_id>/")
- at frontend.route("/prefix/<prefix_id>/<page>/")
def prefix_list(prefix_id, page=0):
page = int(page)
- # FIXME : unsafe code, catch exceptions
session = Session()
sources = session.query(Source)\
.filter(Source.name.startswith(prefix_id))\
.distinct(Source.name)\
- .order_by(Source.name.desc())
-
-
+ .order_by(Source.name.desc(), Source.version.desc())
sources_info = []
for s in sources:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-web.git
More information about the Pkg-debile-commits
mailing list