xdufacool/score_helper.py
def merge(output, students, **kwargs):
    """Read lists of students downloaded from Xidian, merge them to create a unified list."""    
    students_all = {}
    fields = [kwargs["name_xdu"], kwargs["sid_xdu"]]
    for xlsfile in students:
        data = load_xls(xlsfile)
        name_col, sid_col = find_column_index(data[0], fields)
        stus = value_dict(data, sid_col, name_col)
        students_all = merge_students(students_all, stus)

    l_sid, l_name = kwargs["sid_baidu"], kwargs["name_baidu"]
    form = student_form(students_all, l_sid, l_name)
    # write_csv(form, output.replace(".xls", ".csv"))
    write_xls(form, output, kwargs["sheet_baidu"])
Read lists of students downloaded from Xidian, merge them to create a unified list.
Read lists of students downloaded from Xidian, merge them to create a unified list.
Read lists of students downloaded from Xidian merge them to create a unified list .
def merge(output, students, **kwargs):
    students_all = {}
    fields = [kwargs["name_xdu"], kwargs["sid_xdu"]]
    for xlsfile in students:
        data = load_xls(xlsfile)
        name_col, sid_col = find_column_index(data[0], fields)
        stus = value_dict(data, sid_col, name_col)
        students_all = merge_students(students_all, stus)
    l_sid, l_name = kwargs["sid_baidu"], kwargs["name_baidu"]
    form = student_form(students_all, l_sid, l_name)
    write_xls(form, output, kwargs["sheet_baidu"])
def merge ( output , students , ** kwargs ) : students_all = { } fields = [ kwargs [ "name_xdu" ] , kwargs [ "sid_xdu" ] ] for xlsfile in students : data = load_xls ( xlsfile ) name_col , sid_col = find_column_index ( data [ 0 ] , fields ) stus = value_dict ( data , sid_col , name_col ) students_all = merge_students ( students_all , stus ) l_sid , l_name = kwargs [ "sid_baidu" ] , kwargs [ "name_baidu" ] form = student_form ( students_all , l_sid , l_name ) write_xls ( form , output , kwargs [ "sheet_baidu" ] )
Read lists of students downloaded from Xidian, merge them to create a unified list.
Read lists of students downloaded from Xidian merge them to create a unified list .
"""Read lists of students downloaded from Xidian, merge them to create a unified list.""" # write_csv(form, output.replace(".xls", ".csv"))
output
students