Skip to content

fixed top languages missing bug #536

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alyashour
Copy link

closes #535

@anmol098 anmol098 requested a review from Copilot April 24, 2025 08:26
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes bug #535 where the top languages were not correctly sorted.

  • Updated the sorting logic in make_list to sort the entire data set before slicing
  • Ensured that the highest percentages are accurately captured
Comments suppressed due to low confidence (1)

sources/graphics_list_formatter.py:73

  • The updated line now sorts the entire data set before slicing, which fixes the bug where only a subset was sorted; please confirm this behavior meets the intended design for displaying the top languages.
top_data = sorted(data, key=lambda record: record[2], reverse=True)[:top_num] if sort else data[:top_num]

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.

BUG Language Per Repo title does not match graph.
2 participants