]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/templates/scoreboard.mako
Remove redundant code for scoreboard display, add proper percentages to the accuracy...
[xonotic/xonstat.git] / xonstat / templates / scoreboard.mako
index 53a326a1cfee3e0f346ebf895f63c0c0e2327db1..3b5518e5feba951f8e8f2f0533a9045a9056617d 100644 (file)
@@ -15,7 +15,7 @@
         <td>Accuracy</td>
     </tr>
 
-% for pgstat in pgstats[game.game_id]:
+% for pgstat in pgstats:
     <tr>
         <td>
         % if pgstat.player_id > 2:
@@ -47,7 +47,7 @@
 % endif
 
 ##### DM #####
-% if game.game_type_cd == 'dm':
+% if game_type_cd == 'dm':
     <tr>
         <td>Nick</td>
         <td>Kills</td>
@@ -57,7 +57,7 @@
         <td>Accuracy</td>
     </tr>
 
-% for pgstat in pgstats[game.game_id]:
+% for pgstat in pgstats:
     <tr>
         <td>
         % if pgstat.player_id > 2: