flaskMain.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:smells-gud 作者: samlouiscohen 项目源码 文件源码
def get_checkboxes():
    food = request.form['foodName']
    #group = request.form['group']
    g.db = connect_db()

    g.db.execute("INSERT INTO users(favorites) VALUES(?)",[food])
    # g.db.execute("INSERT INTO users(favorites,groups) VALUES(?,?)",[food,group])


    g.db.close()





#Now you have to run with this command: gunicorn flaskMain:app
#Set the host to be 0.0.0.0
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号