Lukáš Kucharczyk 3b37f2c3f0
All checks were successful
continuous-integration/drone/push Build is passing
Fix edge case in format_duration
Fixes #65

```python
def test_specific_precise_if_unncessary(self):
        delta = timedelta(hours=2, minutes=40)
        result = format_duration(delta, "%02.0H:%02.0m")
        self.assertEqual(result, "02:40")
```
This test fails by returning "03:40" instead. The problem is in the way `format_duration` handles fractional hours.
To fix it, we need to switch between using hours and fractional hours
depending on if minutes are present in the formatted string.
2023-11-10 20:07:41 +01:00
2023-01-16 19:46:15 +01:00
2023-09-30 16:25:05 +02:00
2023-11-10 20:07:41 +01:00
2023-11-09 21:43:17 +01:00
2023-11-10 20:07:41 +01:00
2023-11-02 09:52:42 +01:00
2023-01-19 19:35:25 +00:00
2023-10-09 00:04:46 +02:00
2023-02-21 23:50:09 +01:00
2023-02-20 18:20:49 +01:00
2023-01-20 17:15:53 +01:00
2023-11-09 21:11:43 +01:00
2023-01-20 17:15:53 +01:00
2023-01-20 17:15:53 +01:00
2023-11-09 21:11:43 +01:00
2023-02-18 20:35:59 +01:00
2023-01-20 13:37:46 +00:00
2023-09-30 15:55:38 +02:00
2023-10-08 21:08:03 +02:00
2023-11-09 21:11:43 +01:00
2023-01-02 17:14:46 +01:00
2023-10-01 19:53:07 +02:00

Timetracker

A simple game catalogue and play session tracker.

Description
No description provided
Readme 9.2 MiB
2024-01-14 20:29:42 +00:00
Languages
Python 42.4%
HTML 29.9%
CSS 22.6%
JavaScript 3.5%
Dockerfile 0.6%
Other 0.9%