Skip to content

Commit

Permalink
fix: add more slugs to blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
nsantacruz committed May 29, 2024
1 parent 56c941f commit 9fffef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/util/topic.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def generate_topic_description(topic: Topic, text: str) -> str:

def get_or_generate_topic_description(topic: Topic, verbose=True) -> str:
# TODO create a general approach for deciding when a description isn't needed
dont_auto_generate_desc = {'poverty'}
dont_auto_generate_desc = {'poverty', 'ants', 'cyrus'}
description = topic.description.get('en', '')
if topic.slug in dont_auto_generate_desc:
# these topics are better with just their titles. any description will limit their scope unnecessarily.
Expand Down

0 comments on commit 9fffef9

Please sign in to comment.