chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dcce12
)
Generate the index in alpha-sorted (by app name) order
author
Ciaran Gultnieks
<ciaran@ciarang.com>
Mon, 6 Dec 2010 21:29:41 +0000
(21:29 +0000)
committer
Ciaran Gultnieks
<ciaran@ciarang.com>
Mon, 6 Dec 2010 21:29:41 +0000
(21:29 +0000)
update.py
patch
|
blob
|
history
diff --git
a/update.py
b/update.py
index 83bde2e2119a9afa8a0bd891ee6d24ed91695db1..2840f7a92d372f53a75565f0a0ba186a44be0ee2 100644
(file)
--- a/
update.py
+++ b/
update.py
@@
-173,6
+173,9
@@
for apk in apks:
print "WARNING: " + apk['apkname'] + " (" + apk['id'] + ") has no metadata"
print " " + apk['name'] + " - " + apk['version']
+#Sort the app list by name, then the web site doesn't have to by default:
+apps = sorted(apps, key=lambda app: app['name'])
+
# Create the index
doc = Document()