elif type(value) == timedelta:
result[key] = datetime_seconds(value)
else:
- print key,value
result[key] = to_json(value.to_dict())
return result
for game in player_info['recent_games']:
recent_games.append(to_json(game))
- recent_weapons = player_info['recent_weapons']
+ #recent_weapons = player_info['recent_weapons']
return [{
'player': player,
'elos': elos,
'ranks': ranks,
'recent_games': recent_games,
- 'recent_weapons': recent_weapons,
+ # 'recent_weapons': recent_weapons,
+ 'recent_weapons': ['not implemented'],
}]
#return [{'status':'not implemented'}]