@app.route('/decide2_grades')
def decide2_grades():
apple = int(session['t3'])
concepts1 = "abcd"
if( int(apple) > 0):
if(int(apple)<70):
concepts1 = "......"
if(int(apple)<63):
concepts1 = concepts1 + "......"
if(int(apple) <52):
concepts1 = concepts1 + "......."
if(int(apple)<45):
concepts1 = concepts1 + "........"
if(int(apple)<35):
concepts1 = concepts1 + "........"
session['concepts1'] = concepts1
return redirect(url_for("decide_grades2"))
当上面的函数被调用时,它没有运行 if 语句。当我在本地运行它时正常运行但是当我在 Heroku 中部署时,它没有向变量概念添加任何东西。我已经检查过 a 的值是否大于 0。但我不明白它为什么没有运行。
这是一个部署在heroku中的flask应用 请谁能告诉我是什么问题