22 Commits

Author SHA1 Message Date
9fccdfbff0
Make links colorful 2023-11-20 23:07:11 +01:00
c44d8bf427 Improve time-related stuff
All checks were successful
continuous-integration/drone/push Build is passing
Add created_at to all models
Add modified_at to Session
Get rid of custom now() function
Make sure aware datetime is used everywhere
2023-11-15 19:14:09 +01:00
8783d1fc8e Name and related_purchase validation for non-games 2023-11-15 13:04:47 +01:00
ae079e36ec Add purchase types 2023-11-14 19:27:00 +01:00
3b37f2c3f0 Fix edge case in format_duration
All checks were successful
continuous-integration/drone/push Build is passing
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
c52cd822ae Use safe_division in more places 2023-11-09 10:06:14 +01:00
a6cd7a3430 Do not format as float if no precision specified
All checks were successful
continuous-integration/drone/push Build is passing
2023-10-13 16:58:12 +02:00
0e2113eefd Display durations in a consistent manner
Fixes #61
2023-10-13 16:32:12 +02:00
11b9c602de Improve game overview
- add counts for each section
- add average hours per session
2023-10-09 00:00:45 +02:00
22935721ca Remove unused chart functionality
All checks were successful
continuous-integration/drone/push Build is passing
2023-10-08 21:08:03 +02:00
ab41222f3c Switch fonts to WOFF2 2023-10-01 19:53:07 +02:00
29bf3b1946 Further improve session list
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-30 19:44:35 +02:00
2d5ad3182c Update CSS 2023-09-30 16:24:54 +02:00
bc81a0ee8e Add hacky way to not reload page when starting/ending session
All checks were successful
continuous-integration/drone/push Build is passing
Partially fixes #52
2023-09-20 18:54:54 +02:00
fa4f1c4810 Improve forms, add helper buttons on add session form 2023-02-21 23:49:57 +01:00
c3d4697470
Add wikidata ID and year for editions 2023-02-20 17:13:35 +01:00
4a6f4a2f9a Add icons for session filters
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-19 16:18:14 +01:00
938c82a395 Allow filtering by game, edition, purchase from the session list 2023-02-19 14:36:12 +01:00
33939f631c Fix form styling
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-18 22:36:26 +01:00
6b00a950ce Show markers on smaller graphs 2023-01-30 22:01:27 +01:00
18e8f93261
Additional fixes
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-20 15:06:42 +01:00
56e5dfaa03 Rename project, part 2 (#42)
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #42
2023-01-20 13:37:46 +00:00