]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
fastest_cap -> fastest
authorAnt Zucaro <azucaro@gmail.com>
Sat, 26 Jan 2013 22:38:02 +0000 (17:38 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 26 Jan 2013 22:38:02 +0000 (17:38 -0500)
xonstat/templates/game_info.mako
xonstat/views/game.py
xonstat/views/submission.py

index b067cfe838cf68372b7d35b4eac43466ae1233ba..2c5f1b30bd924f7cf13abeef7b6c85dd1bcc4516 100644 (file)
@@ -77,7 +77,7 @@ Game Information
             <span class="nick">${pgs.nick_html_colors()|n}</span>
           % endif
           </td>
-          <td>${round(float(pgs.fastest_cap.seconds) + (pgs.fastest_cap.microseconds/1000000.0), 2)}</td>
+          <td>${round(float(pgs.fastest.seconds) + (pgs.fastest.microseconds/1000000.0), 2)}</td>
         </tr>
       % endfor
       </tbody>
index 11be0287d0003312f4fd5175043383a657ca91cd..4c4800de990386f995187820be5142e0999adb21 100644 (file)
@@ -84,10 +84,10 @@ def _game_info_data(request):
         captimes = []
         if game.game_type_cd == 'ctf':
             for pgstat in pgstats:
-                if pgstat.fastest_cap is not None:
+                if pgstat.fastest is not None:
                     captimes.append(pgstat)
 
-            captimes = sorted(captimes, key=lambda x:x.fastest_cap)
+            captimes = sorted(captimes, key=lambda x:x.fastest)
 
         pwstats = {}
         for (pwstat, pgstat, weapon) in DBSession.query(PlayerWeaponStat, PlayerGameStat, Weapon).\
index 78a85a8e029875349c991516367fe6fc9103d4dd..9e1a6a90b5d5729f8ff71bcf4edb6df81e7bdd1e 100644 (file)
@@ -633,10 +633,10 @@ def create_game_stat(session, game_meta, game, server, gmap, player, events):
 \r
         if key == 'avglatency': pgstat.avg_latency = float(value)\r
         if key == 'scoreboard-captime':\r
-            pgstat.fastest_cap = datetime.timedelta(seconds=float(value)/100)\r
+            pgstat.fastest = datetime.timedelta(seconds=float(value)/100)\r
             if game.game_type_cd == 'ctf':\r
                 update_fastest_cap(session, player.player_id, game.game_id,\r
-                        gmap.map_id, pgstat.fastest_cap)\r
+                        gmap.map_id, pgstat.fastest)\r
 \r
     # there is no "winning team" field, so we have to derive it\r
     if wins and pgstat.team is not None and game.winner is None:\r