golf/views/.~c9_invoke_H9Dn7P.py
def calculateScores(request):
    """
    Score the tournament
    Save the data
    Return the rankings grosses and nets and colors per cell
    """
    tournament = model_to_dict(Tournament.objects.get(id=request.POST.get('tournamentId')))
    f
    classModule = importlib.import_module('golf.plugins.'+tournament['format_plugin__class_package'])
    classAccess = getattr(classModule, tournament['format_plugin__class_name'])
    classInst = classAccess()
    classInst.calculateScores(request.POST)
    resultList = list(Player.objects.values('id', 'club_member_number', 'name', 'handicap_index', 'high_handicap_index', 'low_handicap_index', 'last_updated', 'data', 'priority'))
    return JsonResponse(resultList)

    Score the tournament
    Save the data
    Return the rankings grosses and nets and colors per cell
    
Score the tournament
Save the data
Return the rankings grosses and nets and colors per cell
Score the tournament Save the data Return the rankings grosses and nets and colors per cell
def calculateScores(request):
    tournament = model_to_dict(Tournament.objects.get(id=request.POST.get('tournamentId')))
    f
    classModule = importlib.import_module('golf.plugins.'+tournament['format_plugin__class_package'])
    classAccess = getattr(classModule, tournament['format_plugin__class_name'])
    classInst = classAccess()
    classInst.calculateScores(request.POST)
    resultList = list(Player.objects.values('id', 'club_member_number', 'name', 'handicap_index', 'high_handicap_index', 'low_handicap_index', 'last_updated', 'data', 'priority'))
    return JsonResponse(resultList)
def calculateScores ( request ) : tournament = model_to_dict ( Tournament . objects . get ( id = request . POST . get ( 'tournamentId' ) ) ) f classModule = importlib . import_module ( 'golf.plugins.' + tournament [ 'format_plugin__class_package' ] ) classAccess = getattr ( classModule , tournament [ 'format_plugin__class_name' ] ) classInst = classAccess ( ) classInst . calculateScores ( request . POST ) resultList = list ( Player . objects . values ( 'id' , 'club_member_number' , 'name' , 'handicap_index' , 'high_handicap_index' , 'low_handicap_index' , 'last_updated' , 'data' , 'priority' ) ) return JsonResponse ( resultList )
Score the tournament
Save the data
Return the rankings grosses and nets and colors per cell
Score the tournament Save the data Return the rankings grosses and nets and colors per cell
"""
    Score the tournament
    Save the data
    Return the rankings grosses and nets and colors per cell
    """
request