mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 21:06:01 +01:00
Micro-optimization
This commit is contained in:
parent
cbc95ed9e5
commit
20867c1687
1 changed files with 1 additions and 1 deletions
|
|
@ -547,7 +547,7 @@ def author_data(self, author_ids=None):
|
|||
'''
|
||||
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…
Reference in a new issue