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

Show user and pack durations as minutes if less than an hour #1861

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

alastair
Copy link
Member

@alastair alastair commented Feb 21, 2025

Issue(s)
Fixes #1818

Description
'0:03 hours' isn't very useful, better to show '3:45 minutes'
Screenshot 2025-02-21 at 9 23 15 PM

The code for computing/selecting hours vs minutes is duplicated in two places, for now I'm not worried about this but we could combine it in a helper if needed. The |duration_hours templatetag is still used elsewhere, so don't remove it.

I updated the test settings to disable the cache, so that I could read values for the test multiple times. I think it generally makes sense to disable the cache during tests? although some tests are now failing.
If we want to keep it then I can work around it for just this test.

'0:03 hours' isn't very useful, better to show '3:45 minutes'
@alastair alastair marked this pull request as ready for review February 21, 2025 20:25
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.

Show user/pack sound stats in minutes if total duration is less than an hour
1 participant