Skip to content

Remove extra sort when listing out leadership council #670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2025

Conversation

dragid10
Copy link
Member

Issue Link 🔗:

Issue: #652

Type of Change

  • Bug fix 🐞
  • New feature/page
  • Documentation update
  • Other

Description 📋

What:

When starting up the server locally, we see this liquid warning

Liquid Warning: Liquid syntax error (line 79): Expected end_of_string but found pipe in "leader in council | sort" in about.html

This means that liquid is expecting the statement to end after leader in council, but it sees that there is | sort following, and it is confused by that.

Why

While this is only a warning, fixing this bug helps to resolve a tiny bit of confusion when seeing the warning

How

Because we're already sorting the leadership council when assigning the council variable, there's no need to try and sort it again in the later for loop. So I just removed the | sort function and verified that the order of the leadership council page remains the exact same

Checklist ✅

  • Followed the Code of Conduct and Contribution Guide
  • Ran pre-commit run --all
  • All tests pass locally
  • Added tests (if applicable)
  • Documentation updated (if applicable)

Additional Notes & Screenshots

Add any additional notes or comments that might be helpful for the reviewers.

Fixes BlackPythonDevs#652
Because we're already sorting the leadership council when assigning the `council` variable, there's no need to try and sort it again in the later `for` loop
@dragid10 dragid10 linked an issue May 10, 2025 that may be closed by this pull request
Copy link
Contributor

@kjaymiller kjaymiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

@kjaymiller kjaymiller merged commit 452f353 into BlackPythonDevs:gh-pages May 12, 2025
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix broken liquid syntax
2 participants