Stanza feed: Show newly added books first

This commit is contained in:
Kovid Goyal 2009-08-02 11:11:34 -06:00
parent 7320da0788
commit c59bfefc59

View File

@ -299,7 +299,7 @@ class LibraryServer(object):
'Feeds to read calibre books on a ipod with stanza.'
books = []
ids = self.db.data.parse(search) if search and search.strip() else self.db.data.universal_set()
for record in iter(self.db):
for record in reversed(list(iter(self.db))):
if record[0] not in ids: continue
r = record[FIELD_MAP['formats']]
r = r.upper() if r else ''