From c59bfefc5969c5f03c5e2e68a72b4d736b7654f2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 2 Aug 2009 11:11:34 -0600 Subject: [PATCH] Stanza feed: Show newly added books first --- src/calibre/library/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/library/server.py b/src/calibre/library/server.py index 5d96cae511..98ae93d070 100644 --- a/src/calibre/library/server.py +++ b/src/calibre/library/server.py @@ -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 ''