xdufacool/score_helper.py
def fill_score_form(form, scores, sid_col=1):
    """Fill in the score form, whose first line is a header."""
    # Skipping the first row (header)
    for row in form[1:]:
        sid = row[sid_col]
        sc = scores[sid] if sid in scores else "0"
        # row[-1] = f"{sc:g}"
        row[-1] = sc
Fill in the score form, whose first line is a header.
Fill in the score form, whose first line is a header.
Fill in the score form whose first line is a header .
def fill_score_form(form, scores, sid_col=1):
    for row in form[1:]:
        sid = row[sid_col]
        sc = scores[sid] if sid in scores else "0"
        row[-1] = sc
def fill_score_form ( form , scores , sid_col = 1 ) : for row in form [ 1 : ] : sid = row [ sid_col ] sc = scores [ sid ] if sid in scores else "0" row [ - 1 ] = sc
Fill in the score form, whose first line is a header.
Fill in the score form whose first line is a header .
"""Fill in the score form, whose first line is a header.""" # Skipping the first row (header) # row[-1] = f"{sc:g}"
form
scores
sid_col