{% if request.headers.get('hx-request') != "true" %}
{% endif %}

Steam

{{ steam.caches.recent.status }} {{ steam.caches.owned.status }} {% if steam.caches.recent.data.games %}

Recently played:

{% for g in steam.caches.recent.data.games.values() %}
{{ g.name }}

Played last 2 weeks: {{ tmsmp(g.playtime_2weeks*60) }}

{% if steam.caches.owned.data.games %} {% if steam.caches.owned.data.games[g.appid] %}

{% else %}

Last played: Unknown

{% endif %} {% endif %}
{% endfor %}

{% endif %} {% if steam.caches.owned.data.games %}

Top played games:

{% set owned_games = steam.caches.owned.data.games.values() | sort(attribute="playtime_forever", reverse=true) %} {% for g in owned_games[:5] %}
{{ g.name }}

Total played: {{ tmsmp(g.playtime_linux_forever*60) }} (L) + {{ tmsmp(g.playtime_windows_forever*60) }} (W) = {{ tmsmp(g.playtime_forever*60) }} (T)

{% if g.rtime_last_played != 0 %}

{% endif %}
{% endfor %}

{% endif %}
{% if request.headers.get('hx-request') != "true" %}
{% endif %}