@dajaxice_register
def search_players(request, search_request):
    if len(search_request) < 2:
        return None
    dajax = Dajax()
    result_set = SteamPlayer.filter_by_name(name=search_request, profileurl=search_request, communityid=search_request)
    result_string = render_to_string('ajax/search_results_players.html', dictionary=dict({'results': result_set}))
    dajax.add_data(result_string, 'render_players')
    return dajax.json()
dataset/ETHPy150Open romanalexander/opendota/dotastats/ajax.py/search_players/original