@application.route("/applyexcel")

def applyexcel():

    location = request.args.get("location")   # html에서 사용하였던 변수

    cleaness = request.args.get("clean")      # html에서 사용하였던 변수

    built_in = request.args.get("built")      # html에서 사용하였던 변수

    if cleaness == None:

        cleaness = False

    else:

        cleaness = True

    database.save(location, cleaness, built_in)

    print(location, cleaness, built_in)

    return render_template("apply_excel.html")








def save(location, cleaness, built_in):

    idx = len(pd.read_csv("database.csv"))

    new_df = pd.DataFrame({"location":location,

                           "cleaness":cleaness,

                           "built_in":built_in}, 

                         index = [idx])

    new_df.to_csv("database.csv",mode = "a", header = False)

    return None






AttributeError: module 'database' has no attribute 'save'


import database도 넣었고 따로 오류도 없는 것 같은데 계속 뜨네요