Commit Graph

7 Commits

Author SHA1 Message Date
Dan McGee
9acae339ff Simplify sorting attrgetter calls
Don't use dotted notation now that we have less-than implemented methods
on the respective objects (which also allows this code to work under
PyPy). Switch a lambda call to use attrgetter as well.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-11-27 14:56:15 -06:00
Dan McGee
d57696c801 PyLint suggested cleanups
We had a bunch of extra imports, non-conventional variable names, spacing
issues, etc. that were relatively low-hanging fruit to clean up. Fix them
and make the code a bit cleaner in the process.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-28 11:41:19 -05:00
Dan McGee
da9a1ecbf8 Cache the recent updates list
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-21 00:51:39 -05:00
Dan McGee
ad33813bc1 Improve front page recent updates list
Instead of linking the package name, link the architecture. This will
prevent the lost links we had when we collapsed the list to show multiple
architectures at the same time.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-04-17 11:10:26 -05:00
Dan McGee
0a6c760b35 Only group packages if they are in the same repo
Fixes FS#18436.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-26 19:37:15 -06:00
Dan McGee
d709604102 Remove archweb prefix from all imports
Unnecessary, and lets us standardize on not using it everywhere.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-10 00:29:27 -06:00
Dan McGee
b2f33457f6 Make recent updates group multiple architectures
It isn't the most elegant operation in the world, but attempt to only show
one line per package, grouping by architecture if multiple were updated in
the same go. This makes the recent packages view a bit more useful as a
heads up view. Implements FS#17304.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-05 17:03:35 -06:00