Skip to content

Fix repeated ticks in reviews graph #4108

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
Jun 21, 2025
Merged

Fix repeated ticks in reviews graph #4108

merged 1 commit into from
Jun 21, 2025

Conversation

user1823
Copy link
Contributor

In #4086, I tried to make the ticks looks cleaner because ticks like 16.67m, 33.33m, 1.11h, 1.39h, etc. look unclean.

However, this resulted in a regression. In 25.06b4, the graph looks like this. Note the repeated 1h and 2h ticks.

This PR fixes that regression by setting precise=True again. I think we need a better way to control the rounding precision (https://forums.ankiweb.net/t/reduce-precision-of-time-studied-today/42309). But, that's out of scope of this PR.

@dae
Copy link
Member

dae commented Jun 21, 2025

These things happen. Appreciate the follow-up fix!

@dae dae merged commit 5cc3a22 into ankitects:main Jun 21, 2025
1 check passed
@user1823 user1823 deleted the patch-2 branch June 21, 2025 12:29
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.

2 participants