]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/templates/player_info.mako
Merge pull request #35 from antzucaro/win-percentage
[xonotic/xonstat.git] / xonstat / templates / player_info.mako
index 0c560e51a3e934c8fa668d7b47e6fd4face9c20b..ad65e8f54324ebdcac39f2a2f9efd24e18760eac 100644 (file)
         ##### RIGHT PANE #####
         <div class="small-12 medium-6 columns">
           <p>
-            Win Percentage: <small>${round(g.win_pct,2)}% (${g.wins} wins, ${g.losses} losses) <br /></small>
+            % if g.win_pct is not None:
+                Win Percentage: <small>${round(g.win_pct,2)}% (${g.wins} wins, ${g.losses} losses) <br /></small>
+            % endif
 
             % if g.game_type_cd in overall_stats:
               % if overall_stats[g.game_type_cd].k_d_ratio is not None: