Python Flask Html If Then Statement