Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
Disable time period and topic filters
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Jan 9, 2024
1 parent abc2981 commit eba6c55
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions app/articles/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit eba6c55

Please sign in to comment.