Skip to content

Commit

Permalink
fix topics
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxDall committed Mar 8, 2024
1 parent a633705 commit ca0b237
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/fundus/publishers/us/the_nation_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,10 @@ class V2(V1):
# remove aside function from V1
def _remove_aside(self):
pass

@attribute
def topics(self) -> List[str]:
if topics := generic_topic_parsing(self.precomputed.meta.get("keywords")):
return topics
else:
return generic_topic_parsing(self.precomputed.meta.get("sailthru.tags"))

0 comments on commit ca0b237

Please sign in to comment.