Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

problem in if loop funtiong in flask heroku

@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"))

when the above function is called it is not running the if statements . when i run it locally running properly but when I deploy in Heroku it is not adding any thing to the variable concepts . I have checked that the value of a is greater than 0.But i am not understanding why it is not running .

it is a flask app deployed in heroku please can anyone tell me what is the problem

question from:https://stackoverflow.com/questions/65924216/problem-in-if-loop-funtiong-in-flask-heroku

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...