Skip to content

Commit

Permalink
publication_list: Allow repeated entries in two different input bib f…
Browse files Browse the repository at this point in the history
…iles.
  • Loading branch information
xuhdev committed Apr 1, 2018
1 parent 5638312 commit 69375fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions v7/publication_list/publication_list.py
Expand Up @@ -95,10 +95,9 @@ def run(self):
style = Style(self.site.config['BASE_URL'] + detail_page_dir if detail_page_dir else None)
self.state.document.settings.record_dependencies.add(self.arguments[0])

parser = Parser()

all_entries = []
for a in self.arguments:
parser = Parser()
all_entries.extend(parser.parse_file(a).entries.items())
# Sort the publication entries by year reversed
data = sorted(all_entries, key=lambda e: e[1].fields['year'], reverse=True)
Expand Down

0 comments on commit 69375fd

Please sign in to comment.