Exemple #1
0
def rating():
    pages = session.query(Page).all()
    pr.setup(pages)
    pr.iterate(pr_iterate_times)
    pr.finish()
    session.commit()
Exemple #2
0
def init_rating():
    pages = session.query(Page).all()
    pr.init_rank(pages)
    pr.finish()
    session.commit()