<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>
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).\
\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