diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ebbafd6..9c211dd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,3 +8,8 @@ repos: hooks: - id: isort name: isort (python) +- repo: https://github.com/Riverside-Healthcare/djLint + rev: v1.34.0 + hooks: + - id: djlint-reformat-django + - id: djlint-django diff --git a/games/templates/stats.html b/games/templates/stats.html index 18b4e75..efbec13 100644 --- a/games/templates/stats.html +++ b/games/templates/stats.html @@ -18,37 +18,37 @@ -

Playtime

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +

Playtime

+
Hours{{ total_hours }}
Sessions{{ total_sessions }}
Days{{ unique_days }} ({{ unique_days_percent }}%)
Games{{ total_games }}
Games ({{ year }}){{ total_2023_games }}
Finished{{ all_finished_this_year.count }}
Finished ({{ year }}){{ this_year_finished_this_year.count }}
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -57,37 +57,37 @@ - -
Hours{{ total_hours }}
Sessions{{ total_sessions }}
Days{{ unique_days }} ({{ unique_days_percent }}%)
Games{{ total_games }}
Games ({{ year }}){{ total_2023_games }}
Finished{{ all_finished_this_year.count }}
Finished ({{ year }}){{ this_year_finished_this_year.count }}
Longest session {{ longest_session_time }} ({{ longest_session_game }})Most sessions {{ highest_session_count }} ({{ highest_session_count_game }})
-

Purchases

- - - - - - - - - - - - - - - - - - - - - - - -
Total{{ all_purchased_this_year.count }}
Refunded - {{ all_purchased_refunded_this_year.count }} ({{ refunded_percent }}%) -
Unfinished - {{ purchased_unfinished.count }} ({{ unfinished_purchases_percent }}%) -
Backlog Decrease{{ backlog_decrease_count }}
Spendings ({{ total_spent_currency }}){{ total_spent }} ({{ spent_per_game }}/game)
+ + +

Purchases

+ + + + + + + + + + + + + + + + + + + + + + + +
Total{{ all_purchased_this_year.count }}
Refunded + {{ all_purchased_refunded_this_year.count }} ({{ refunded_percent }}%) +
Unfinished + {{ purchased_unfinished.count }} ({{ unfinished_purchases_percent }}%) +
Backlog Decrease{{ backlog_decrease_count }}
Spendings ({{ total_spent_currency }}){{ total_spent }} ({{ spent_per_game }}/game)

Top games by playtime