diff --git a/app/articles/routes.py b/app/articles/routes.py index fc3e3a6..9caebc4 100644 --- a/app/articles/routes.py +++ b/app/articles/routes.py @@ -47,18 +47,18 @@ async def index( async def filters() -> list[ArticleFilter]: filters = [] - time_period_filter = ArticleFilter("Time period") - for time_period in get_time_periods(): - time_period_filter.add_filter_option( - time_period["name"], time_period["value"] - ) - filters.append(time_period_filter) + # time_period_filter = ArticleFilter("Time period") + # for time_period in get_time_periods(): + # time_period_filter.add_filter_option( + # time_period["name"], time_period["value"] + # ) + # filters.append(time_period_filter) - topics_filter = ArticleFilter("Topic") - topics = get_topics() - for topic in sorted(topics, key=lambda x: x["name"]): - topics_filter.add_filter_option(topic["name"], topic["value"]) - filters.append(topics_filter) + # topics_filter = ArticleFilter("Topic") + # topics = get_topics() + # for topic in sorted(topics, key=lambda x: x["name"]): + # topics_filter.add_filter_option(topic["name"], topic["value"]) + # filters.append(topics_filter) types_filter = ArticleFilter("Type") types_filter.add_filter_option(