diff --git a/trends/site/templates/log.html b/trends/site/templates/log.html index 69fdb16..22a3416 100644 --- a/trends/site/templates/log.html +++ b/trends/site/templates/log.html @@ -77,7 +77,7 @@ {{ cls['kills'] }} {{ cls['deaths'] }} {{ cls['assists'] }} - {{ cls['dpm'] | int }} + {{ optint(cls['dpm']) }} {{ cls['dmg'] }} {# +2 for heal/lks #} @@ -169,11 +169,11 @@ {{ row['kills'] }} {{ row['deaths'] }} {{ row['assists'] }} - {{ row['dpm'] | int }} + {{ optint(row['dpm']) }} {% if has['dt'] %} {{ optint(row['dtm']) }} {% endif %} - {{ row['hpm'] | int }} + {{ optint(row['hpm']) }} {{ row['dmg'] }} {% macro optcol(col) %} {% if has[col] %} diff --git a/trends/site/templates/macros/logs.html b/trends/site/templates/macros/logs.html index b143fde..409e257 100644 --- a/trends/site/templates/macros/logs.html +++ b/trends/site/templates/macros/logs.html @@ -69,10 +69,10 @@ {{ log['kills'] }} {{ log['deaths'] }} {{ log['assists'] }} - {{ log['dpm'] | int }} + {{ optint(log['dpm']) }} {{ optint(log['dtm']) }} - {{ log['hpm_given'] | int }} - {{ log['hpm_recieved'] | int }} + {{ optint(log['hpm_given']) }} + {{ optint(log['hpm_recieved']) }} {{ optformat("{:.0%}", log['acc']) }} {{ datetime_col(log['time']) }} {% if extra %}