Skip to content

Commit

Permalink
fix 500 error in user news (#299)
Browse files Browse the repository at this point in the history
Co-authored-by: Jake Rosenberg <[email protected]>
  • Loading branch information
jarosenb and Jake Rosenberg authored Aug 18, 2023
1 parent 0206801 commit 05bc9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/tup-cms/src/apps/user_news/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_latest_articles(count = max_articles, sanitize = True):

def get_article(id_, sanitize = True):
articles = get_articles(sanitize)
filtered_articles = filter(lambda article: article['ID'] == int(id_), articles)
filtered_articles = filter(lambda article: str(article['ID']) == str(id_), articles)
article = list(filtered_articles)[0]

return create_proxy_article(article)
Expand Down

0 comments on commit 05bc9be

Please sign in to comment.