fixed help articles
This commit is contained in:
@@ -57,7 +57,12 @@ def init_public_routes(public_bp):
|
||||
articles = HelpArticle.get_articles_by_category(category)
|
||||
category_name = categories[category]
|
||||
else:
|
||||
# Show all articles when no specific category is requested
|
||||
articles = []
|
||||
for category_articles in all_articles.values():
|
||||
articles.extend(category_articles)
|
||||
# Sort by order_index and then by created_at
|
||||
articles.sort(key=lambda x: (x.order_index, x.created_at))
|
||||
category_name = None
|
||||
|
||||
return render_template('public/help_articles.html',
|
||||
|
||||
Reference in New Issue
Block a user