Exemple #1
0
def Blog_info_data():
    blog_info = Blog_info()
    blog_info.date = str(datetime.now().date())
    blog_info.visit_all = 0
    blog_info.visit_day = 0
    blog_info.visit_month = 0
    blog_info.visit_attack = 0
    blog_info.visit_attack_day = 0
    blog_info.visit_robot = 0
    blog_info.visit_robot_day = 0
    blog_info.article_all = 0
    blog_info.article_month = 0
    blog_info.user_all = 0
    blog_info.login_all = 0
    db.session.add(blog_info)
    db.session.commit()
Exemple #2
0
def Blog_info_data():
    blog_info = Blog_info()
    blog_info.date = str(datetime.now().date())
    blog_info.visit_all = 0
    blog_info.visit_day = 0
    blog_info.visit_month = 0
    blog_info.visit_attack = 0
    blog_info.visit_attack_day = 0
    blog_info.visit_robot = 0
    blog_info.visit_robot_day = 0
    blog_info.article_all = 0
    blog_info.article_month = 0
    blog_info.user_all = 0
    blog_info.login_all = 0
    db.session.add(blog_info)
    db.session.commit()