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

Commit

Permalink
Fix list append
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Jan 4, 2024
1 parent 2d6ab09 commit 26051b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/articles/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ async def filters() -> list[ArticleFilter]:
time_period_filter.add_filter_option(
time_period["name"], time_period["value"]
)
filters.filters.append(time_period_filter)
filters.append(time_period_filter)
topics_filter = ArticleFilter("Topics")
for topic in get_topics():
topics_filter.add_filter_option(topic["name"], topic["value"])
filters.filters.append(topics_filter)
filters.append(topics_filter)
return filters

0 comments on commit 26051b0

Please sign in to comment.