Commit 54bda72
Restore helpers.seconds_to_hm, accidentally deleted by the collection-completeness commit
74bb993 ("Add partial-collection completeness to the Collection page",
fixes #976) deleted seconds_to_hm from helpers.py as unrelated collateral
damage, breaking every call site that formats a podcast episode duration
(podcast API/views, stats aggregator, stats_podcast) since it's the shared
formatter 3e77176 consolidated seven duplicate implementations into.
Restoring the original implementation rather than re-duplicating it at
each call site.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent ef9c346 commit 54bda72
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
78 | 90 | | |
79 | 91 | | |
80 | 92 | | |
| |||
0 commit comments