Skip to content
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

refactor spaces and tabs, dump JSON without stringify, add new group_rank for each contest #1

Closed
wants to merge 2 commits into from

Conversation

zhengfu23
Copy link

  • Refactor spaces and tabs: there were 2-space, 4-space and tab indentations, I refactor them all to 4-space for better readability.

  • Removed json.loads and json.dumps so data.json will not have the escape characters for the quotation marks and can be read better if needed.

  • In FetchRanks.py added a new variable group_rank to add user's ranking within the group for this contest in the dictionary entry as the last item. I think displaying a person's in-group ranking fluctuation is perhaps a good indicator to see if one's improving within the group. Can also enable the feature to show "up by x ranks" and "down by x ranks" with red and green arrows when comparing this week's in group ranking with previous week.

@zhengfu23 zhengfu23 closed this Nov 8, 2019
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.

1 participant