Skip to content

Commit

Permalink
fix a bug with topic parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxDall committed Sep 3, 2024
1 parent dbb3566 commit ebb05e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fundus/publishers/ca/cbc_news.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def title(self) -> Optional[str]:

@attribute
def topics(self) -> List[str]:
if (topic_dict := self.precomputed.ld.bf_search("keywords")) is None:
if not (topic_dict := self.precomputed.ld.bf_search("keywords")):
return []

# add locations
Expand Down

0 comments on commit ebb05e3

Please sign in to comment.