log = logging.getLogger(__name__)
-def _player_index_data(request):
+def player_index_data(request):
if request.params.has_key('page'):
current_page = request.params['page']
else:
"""
Provides a list of all the current players.
"""
- return _player_index_data(request)
+ return player_index_data(request)
def player_index_json(request):
return (avg, dmgs)
-def _player_info_data(request):
+def player_info_data(request):
player_id = int(request.matchdict['id'])
if player_id <= 2:
player_id = -1;
"""
Provides detailed information on a specific player
"""
- return _player_info_data(request)
+ return player_info_data(request)
def player_info_json(request):
return [{'status':'not implemented'}]
-def _player_game_index_data(request):
+def player_game_index_data(request):
player_id = request.matchdict['player_id']
if request.params.has_key('page'):
player was involved. This is ordered by game_id, with
the most recent game_ids first. Paginated.
"""
- return _player_game_index_data(request)
+ return player_game_index_data(request)
def player_game_index_json(request):
return [{'status':'not implemented'}]
-def _player_accuracy_data(request):
+def player_accuracy_data(request):
player_id = request.matchdict['id']
allowed_weapons = ['nex', 'rifle', 'shotgun', 'uzi', 'minstanex']
weapon_cd = 'nex'
"""
Provides the accuracy for the given weapon. (JSON only)
"""
- return _player_accuracy_data(request)
+ return player_accuracy_data(request)
def player_accuracy_json(request):
'shotgun', 'uzi', and 'minstanex'.
games = over how many games to display accuracy. Can be up to 50.
"""
- return _player_accuracy_data(request)
+ return player_accuracy_data(request)
-def _player_damage_data(request):
+def player_damage_data(request):
player_id = request.matchdict['id']
allowed_weapons = ['grenadelauncher', 'electro', 'crylink', 'hagar',
'rocketlauncher', 'laser']
'laser'.
games = over how many games to display damage. Can be up to 50.
"""
- return _player_damage_data(request)
+ return player_damage_data(request)