Skip to content

Commit

Permalink
šŸ› fix(views): Correct category assignment and sorting in README generā€¦
Browse files Browse the repository at this point in the history
ā€¦ation
  • Loading branch information
thibaultyou committed Sep 30, 2024
1 parent 2b13e0d commit cf0f44b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/update_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def update_views():
if primary_category not in categories:
categories[primary_category] = []

categories[category].append({
categories[primary_category].append({
'title': metadata.get('title', 'Untitled'),
'description': metadata.get('one_line_description', 'No description'),
'path': f'prompts/{prompt_dir}/view.md',
Expand All @@ -86,7 +86,7 @@ def update_views():

# Generate README content using the template and write to file
logger.info("Generating README content")
readme_content = readme_template.render(categories=categories, format_category=format_category)
readme_content = readme_template.render(categories=sorted_categories, format_category=format_category)
readme_path = 'README.md'
with open(readme_path, 'w') as f:
f.write(readme_content)
Expand Down

0 comments on commit cf0f44b

Please sign in to comment.