Files
.githooks
.vscode
common
__init__.py
import_data.py
input.css
time.py
utils.py
games
tests
timetracker
.dockerignore
.drone.yml
.editorconfig
.gitignore
CHANGELOG.md
Caddyfile
Dockerfile
Makefile
README.md
docker-compose.no-caddy.yml
docker-compose.yml
entrypoint.sh
manage.py
package.json
poetry.lock
pyproject.toml
tailwind.config.js
timetracker/common
Lukáš Kucharczyk 3b37f2c3f0 Fix edge case in format_duration
Fixes 

```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-20 13:37:46 +00:00
2023-01-20 13:37:46 +00:00
2023-10-01 19:53:07 +02:00
2023-11-10 20:07:41 +01:00
2023-11-09 10:06:14 +01:00