File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def _constructACMClass(meta: DocMeta) -> Optional[list]:
4444
4545def _transformAuthor (author : dict ) -> Optional [Dict ]:
4646 if (not author ['last_name' ]) and (not author ['first_name' ]):
47- return None
47+ return None
4848 author ['full_name' ] = re .sub (r'\s+' , ' ' , f"{ author ['first_name' ]} { author ['last_name' ]} " )
4949 author ['initials' ] = [pt [0 ] for pt in author ['first_name' ].split () if pt ]
5050 # initials = ' '.join(author["initials"])
@@ -54,11 +54,21 @@ def _transformAuthor(author: dict) -> Optional[Dict]:
5454
5555
5656def _constructAuthors (meta : DocMeta ) -> List [Dict ]:
57- return [_transformAuthor (author ) for author in meta .authors_parsed ]
57+ _authors = []
58+ for author in meta .authors_parsed :
59+ _author = _transformAuthor (author )
60+ if _author :
61+ _authors .append (_author )
62+ return _authors
5863
5964
6065def _constructAuthorOwners (meta : DocMeta ) -> List [Dict ]:
61- return [_transformAuthor (author ) for author in meta .author_owners ]
66+ _authors = []
67+ for author in meta .author_owners :
68+ _author = _transformAuthor (author )
69+ if _author :
70+ _authors .append (_author )
71+ return _authors
6272
6373
6474def _getFirstSubDate (meta : DocMeta ) -> Optional [str ]:
You can’t perform that action at this time.
0 commit comments