summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAndré Glüpker <git@wgmd.de>2018-04-19 19:48:18 +0200
committerAndré Glüpker <git@wgmd.de>2018-04-19 19:48:18 +0200
commit589fba63c8d79ffe95d1155601f451b7ffa09bee (patch)
tree858e71e234acaf2df74057902f6759c834ef2d9c /templates
parent2a4ef0f24816f4c736efe8b355f6f338514b6293 (diff)
downloadsteam-589fba63c8d79ffe95d1155601f451b7ffa09bee.tar.gz
steam-589fba63c8d79ffe95d1155601f451b7ffa09bee.tar.bz2
steam-589fba63c8d79ffe95d1155601f451b7ffa09bee.zip
Support not being able to fetch owned games
Since steam privacy setting allows players to hide their library, the code broke, when there was no data :/
Diffstat (limited to 'templates')
-rw-r--r--templates/premades_html.jinja2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/premades_html.jinja b/templates/premades_html.jinja
index e886023..3bf6b55 100644
--- a/templates/premades_html.jinja
+++ b/templates/premades_html.jinja
@@ -61,7 +61,7 @@
.link(node.data.url)
)
if (node.data.details1) {
- const col = (node.data.details1 < 10) ? 'rgb(150, 0, 0)' : 'rgb(150, 150, 0)'
+ const col = (node.data.details1 < 10 || node.data.details1 == 'n/a') ? 'rgb(150, 0, 0)' : 'rgb(150, 150, 0)'
ui.append(Viva.Graph.svg('text')
.attr('text-anchor', 'middle')
.attr('fill', col)