Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

@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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
1.1k views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...