mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Micro-optimization
This commit is contained in:
parent
cbc95ed9e5
commit
20867c1687
@ -547,7 +547,7 @@ class Cache(object):
|
||||
'''
|
||||
af = self.fields['authors']
|
||||
if author_ids is None:
|
||||
author_ids = tuple(af.table.id_map)
|
||||
return {aid:af.author_data(aid) for aid in af.table.id_map}
|
||||
return {aid:af.author_data(aid) for aid in author_ids if aid in af.table.id_map}
|
||||
|
||||
@read_api
|
||||
|
Loading…
x
Reference in New Issue
Block a user