mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Stanza feed: Show newly added books first
This commit is contained in:
parent
7320da0788
commit
c59bfefc59
@ -299,7 +299,7 @@ class LibraryServer(object):
|
|||||||
'Feeds to read calibre books on a ipod with stanza.'
|
'Feeds to read calibre books on a ipod with stanza.'
|
||||||
books = []
|
books = []
|
||||||
ids = self.db.data.parse(search) if search and search.strip() else self.db.data.universal_set()
|
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
|
if record[0] not in ids: continue
|
||||||
r = record[FIELD_MAP['formats']]
|
r = record[FIELD_MAP['formats']]
|
||||||
r = r.upper() if r else ''
|
r = r.upper() if r else ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user