Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -107,7 +107,7 @@ def login(): | |
| 107 | 
             
                                new_reward_points = reward_points - 500
         | 
| 108 | 
             
                                sf.Customer_Login__c.update(user['Id'], {"Reward_Points__c": new_reward_points})
         | 
| 109 |  | 
| 110 | 
            -
                            return redirect(url_for("menu"))
         | 
| 111 |  | 
| 112 | 
             
                        else:
         | 
| 113 | 
             
                            print("Invalid credentials!")
         | 
|  | |
| 107 | 
             
                                new_reward_points = reward_points - 500
         | 
| 108 | 
             
                                sf.Customer_Login__c.update(user['Id'], {"Reward_Points__c": new_reward_points})
         | 
| 109 |  | 
| 110 | 
            +
                            return redirect(url_for("menu.menu"))
         | 
| 111 |  | 
| 112 | 
             
                        else:
         | 
| 113 | 
             
                            print("Invalid credentials!")
         |