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)
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)
def index(): url_list = htn.data_reader() return render_template('index.html' ,url_list=url_list)
def analyze(): htn.analyze_hatebu() url_list = htn.data_reader() return render_template('index.html' ,url_list=url_list)