示例#1
0
文件: view.py 项目: junpei0029/mynews
def analyze():
    print "analyze start"
    #非同期実行
    user = g.user
    process = Process(target=htn.analyze_hatebu,args=(user,))
    process.start()
    url_list = htn.data_reader(usr=user)
    return render_template('index.html' ,url_list=url_list,user=user)
示例#2
0
文件: view.py 项目: junpei0029/mynews
def index():
    print "index start"
    user = g.user
    url_list = htn.data_reader(usr=user)
    return render_template('index.html' ,url_list=url_list,user=user)
示例#3
0
def index():
    url_list = htn.data_reader()
    return render_template('index.html' ,url_list=url_list)
示例#4
0
def analyze():
    htn.analyze_hatebu()
    url_list = htn.data_reader()
    return render_template('index.html' ,url_list=url_list)