app.py 文件源码

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

项目:census 作者: ioddly 项目源码 文件源码
def db_upgrade():
    "Create non-existent question tables; use if questions are updated"
    tables = r.table_list().run(conn())
    print(tables)
    for page in config['PAGES']:
        for question in page.questions:
            name = "%s_answers" % question.name
            if name not in tables:
                print("CREATING TABLE %s" % name)
                r.table_create(name, primary_key = 'user_identity').run(conn())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号