Skip to content

Commit

Permalink
Added authors filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottstraughan committed Jul 26, 2024
1 parent 8a723d3 commit 6389449
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/feeds/ResearchPaperFeed.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,7 @@ def _generate_filters(

filters.add_filter('year', feed_item.markdown_file.date.year)

if feed_item.has_value('authors'):
[filters.add_filter('authors', author) for author in feed_item.get('authors')]

return filters

0 comments on commit 6389449

Please sign in to comment.