xdufacool/score_helper.py
def score_dict_to_table(scores, fields):
    """Convert scores to a table."""
    form = [fields]
    for sid, values in scores.items():
        row = [values[fields[0]]]
        row += ["{v:g}".format(v=values[key]) for key in fields[1:]]
        form.append(row)
    return form
Convert scores to a table.
Convert scores to a table.
Convert scores to a table .
def score_dict_to_table(scores, fields):
    form = [fields]
    for sid, values in scores.items():
        row = [values[fields[0]]]
        row += ["{v:g}".format(v=values[key]) for key in fields[1:]]
        form.append(row)
    return form
def score_dict_to_table ( scores , fields ) : form = [ fields ] for sid , values in scores . items ( ) : row = [ values [ fields [ 0 ] ] ] row += [ "{v:g}" . format ( v = values [ key ] ) for key in fields [ 1 : ] ] form . append ( row ) return form
Convert scores to a table.
Convert scores to a table .
"""Convert scores to a table."""
scores
fields