From c9bad924c7c3bc91cdf220fbc1507d1812d504f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Wed, 20 Dec 2017 19:47:04 +0100 Subject: Improve on missing gameextrainfo in steam api. Show 'ingame', if gameid set. Show N/A, if gameextrainfo not set. --- templates/lobby_html.jinja | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'templates/lobby_html.jinja') diff --git a/templates/lobby_html.jinja b/templates/lobby_html.jinja index efb307e..54d5037 100644 --- a/templates/lobby_html.jinja +++ b/templates/lobby_html.jinja @@ -1,4 +1,5 @@ - + + CS:GO Lobbylinkfinder @@ -26,7 +27,7 @@ {# avatar: 32x32, avatarmedium: 64x64, avatarfull: 184x184 #} {% for steamid,profile in steamids.items() %} - {% if profile['gameextrainfo'] %}{% set state = "Ingame" %}{% else %}{% set state = states[profile['personastate']].lower().replace(' ', '') %}{% endif %} + {% if profile['gameid'] %}{% set state = "Ingame" %}{% else %}{% set state = states[profile['personastate']].lower().replace(' ', '') %}{% endif %}